core/homeassistant/components/canary
0bmay 2d2fd3e48f
Cache Canary camera image (#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>
2022-07-11 21:53:33 +02:00
..
translations [ci skip] Translation update 2022-06-21 00:22:51 +00:00
__init__.py Wait for config entry platform forwards (#73806) 2022-07-09 17:27:42 +02:00
alarm_control_panel.py Bump py-canary to 0.5.3 (#73922) 2022-06-23 23:33:03 +02:00
camera.py Cache Canary camera image (#73923) 2022-07-11 21:53:33 +02:00
config_flow.py
const.py
coordinator.py Bump py-canary to 0.5.3 (#73922) 2022-06-23 23:33:03 +02:00
manifest.json Bump py-canary to 0.5.3 (#73922) 2022-06-23 23:33:03 +02:00
model.py Bump py-canary to 0.5.3 (#73922) 2022-06-23 23:33:03 +02:00
sensor.py Bump py-canary to 0.5.3 (#73922) 2022-06-23 23:33:03 +02:00
strings.json