* 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>
* fix: Canary stream camera, fix blocker
fixes a "detected blocking call to putrequest inside the event loop. This is causing stability issues. Please report issue for canary doing blocking calls at homeassistant/components/canary/camera.py, line 149: self._live_stream_session.live_stream_url, extra_cmd=self._ffmpeg_arguments" from log file.
* refactor: black formatting changes
tsia
* Put access to ffmpeg hass.data behind a method
Move all callers of `hass.data[DATA_FFMPEG]` to a new function that returns the FFMpegManager.
* Update homeassistant/components/ffmpeg/__init__.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Remove unnecessary async_ prefix
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Move temperature conversions to entity base class (1/8)
* Update integrations a-c
* Leave old temperature conversion until all integrations are migrated
* tweak
* Use contextlib.suppress
* Remove the MeasurableUnitEntity mixin
* Address comments, add tests
* Fix f-string
* Drop deprecation warning from base entity class
* Update with _attr-shorthand
* Fix rebase mistakes
* Fix additional rebase mistakes
* Only report temperature conversion once
* Fix additional rebase mistakes
* Format homeassistant/components/bbox/sensor.py
* Fix check for overidden _attr_state
* Remove test workarounds from implementation
* Remove useless None-check
* Tweaks
* Migrate new sensors a-c
* Update climacell
* Push deprecation of temperature conversion forward
* Override __repr__ in SensorEntity
* Include native_value in SensorEntity attributes
* Pylint
* Black
* Black
* Fix rebase mistakes
* black
* Fix rebase mistakes
* Revert changes in august/sensor.py
* Revert handling of unit converted restored state
* Apply code review suggestion
* Fix arlo test