* Type extra_state_attributes as a MutableMapping
* Update homeassistant/helpers/entity.py
Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com>
* Update homeassistant/helpers/entity.py
Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com>
* #4851 - Infinite loop on repeat interval of 0
Notification will enter an infinite loop when the repeat interval is specified as zero and it is the last repeat configured. When this occurs avoid the infinite loop and log a warning message. Note: I encountered this issue when routing SMS to Twilio and quickly sent thousands of text messages.
* Update __init__.py
* Remove runtime check since configuration input is now blocked
* Tweak comment
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Check event before creating coroutine
Remove unnecessary regrouping dispatcher
Update typing to reflect actual behavior
Add optimizations for polling mode
* Tibber, use dataclass
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Tibber, use dataclass
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Add additional types for config flow
Fixing style errors introduced by partial typing in pr #53214
* Address typing style errors
Make all functions fully typed, follow up to pr #53214
* Handle all exceptions around the WeMo ensure_long_press_virtual_device method
* Don't use a bare exception
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Log exception
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* refactor tests for KNX
- implement KNXTestKit class for convenient setup and assertion of KNX telegrams
- add fixture returning an instance of KNXTestKit with automatic cleanup test
* add tests for expose default attribute
- fix expose edge case not covered by #53046
* use asyncio.Queue instead of AsyncMock.call_args_list
for better readability
* get xknx from Mock instead of hass.data
* fix type annotations
* add injection methods for incoming telegrams
* rest read-response in expose
* Switch to dataclass from dictionary for climacell sensor definitions
* fix post_init
* fix dataclass and add test
* Update homeassistant/components/climacell/sensor.py
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Update homeassistant/components/climacell/const.py
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* simplify logic
* use tuple
* simplify unit of measurement and use class attributes
* Switch from UnitT to str
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>