* Fix updating Amcrest binary sensors
As detailed in https://bugs.python.org/issue32113, a generator
expression cannot be used with asynchronous components, even that the
resulting elements of the generator are normal objects. Manually
iterate over the event codes and check if the events have happened.
Escape early on the first event that is triggered such that this is
functionally equivalent to using `any`.
* Update homeassistant/components/amcrest/binary_sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* 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>
* Add unique id to amcrest sensors
* Change 'unique_id' to 'serial_number' on api wrapper
* Update unique id's with channel value that can be used in future changes and remove unrelated camera changes
The current version of the `amcrest` package has a bug in exposing if
the video stream is enabled, which leads to the substream status being
used to set if the camera is on or off. The updated version of
`amcrest` fixes this bug.
Fixes#55661
* 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