forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache Canary camera image (home-assistant#73923)
* Cache camera image Cache camera image so a new image isn't generated each call. Adds debug logging * Apply suggestions from code review code compression with walrus operator Co-authored-by: Erik Montnemery <erik@montnemery.com> * fix after walrus operator suggested tweak fully use the live_stream_session variable in async_camera_image * Invalidate cached image after 15 minutes requested code change; invalidate cached image * Removed unnecessary if statement based on code review * Image capture flow updates now sets the image expiration upon getting an updated image updates the cache image only when a new image is captured Co-authored-by: Erik Montnemery <erik@montnemery.com>
- Loading branch information
1 parent
5774f2e
commit 2d2fd3e
Showing
1 changed file
with
43 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters