Skip to content

Commit

Permalink
Update foodsharing picture url
Browse files Browse the repository at this point in the history
  • Loading branch information
FaserF committed Mar 16, 2024
1 parent 383ca7c commit e7870ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/foodsharing/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"documentation": "https://github.com/faserf/ha-foodsharing#readme",
"issue_tracker": "https://github.com/faserf/ha-foodsharing/issues",
"requirements": [],
"version": "2022.09.0",
"version": "2024.03.0",
"iot_class": "cloud_polling"
}
4 changes: 2 additions & 2 deletions custom_components/foodsharing/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ async def async_update(self):
if not picture:
picture = "unavailable"
else:
picture = f"https://foodsharing.de/images/basket/medium-{picture}"
picture = f"https://foodsharing.de{picture}"

baskets.append(
{
Expand Down Expand Up @@ -278,7 +278,7 @@ async def async_update(self):
if not picture:
picture = "unavailable"
else:
picture = f"https://foodsharing.de/images/basket/medium-{picture}"
picture = f"https://foodsharing.de{picture}"

baskets.append(
{
Expand Down

0 comments on commit e7870ac

Please sign in to comment.