Skip to content

Commit

Permalink
Clear the image bytes cache on update
Browse files Browse the repository at this point in the history
  • Loading branch information
jhansche authored Dec 17, 2024
1 parent bdad853 commit 954830d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/birdbuddy/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def _update_url(self, media: Media) -> None:
self._attr_image_url = url
self._attr_image_last_updated = created_at
self._attr_entity_picture = url
self._cached_image = None
elif (url := self.image_url) and url is not UNDEFINED and is_media_expired(url):
# Clear it
self._attr_image_url = None
Expand Down

0 comments on commit 954830d

Please sign in to comment.