* Adding a error condition and a fix for missing lightning epoch values
* adding parentheses around the lambda
* Updating PR
* removed the dumb test
* Updated tests to support good stuff
* Updated snapshots
* Refactoring: exchange POWER_VOLT_AMPERE_REACTIVE with UnitOfReactivePower
* updated iotawatt and mysensors from VOLT_AMPERE_REACTIVE to UnitOfReactivePower.VOLT_AMPERE_REACTIVE
* deprecation period for POWER_VOLT_AMPERE_REACTIVE changed to one year.
* POWER_VOLT_AMPERE_REACTIVE changed to UnitOfReactivePower in blebox integration
* Update homeassistant/const.py
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* add test case
* add test case
* add test case
* add test case
* add test case
* add test case
* remove commented code
* test only fan platform
* add test case
* remove fan mock
* blebox: extend shutterbox tilt support
* feat: add test for new open/close tilt code in blebox covers
* blebox: resign from using future compat branch for cover open/close tilt
* Update homeassistant/components/blebox/cover.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* blebox: revert changes to BLEBOX_TO_HASS_COVER_STATES
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* blebox: use blebox_uniapi.cover.BleboxCoverState enum members instead of plain integers
* Apply suggestion from code review
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Add additional tests for Matter update entity
Extend test coverage for Matter update entity. This includes tests for
error handling and state store/restore.
* Improve test descriptions
* Add restore test only (using mock_restore_cache_with_extra_data)
* Fix test_update_state_save_and_restore test
* Use homeassistant constants
* Use update component constants
* Use freezer to skip time for device update check
We check device updates every 12h currently. Use the freezer to skip
time.
Still add a test which uses the service call to make sure this works
too.
* Initial SMLIGHT integration
Signed-off-by: Tim Lunn <tl@smlight.tech>
* Generated content
Signed-off-by: Tim Lunn <tl@smlight.tech>
* Cleanup LOGGING
* Use runtime data
* Call super first
* coordinator instance attributes
* Move coordinatorEntity and attr to base class
* cleanup sensors
* update strings to use sentence case
* Improve reauth flow on incorrect credentials
* Use fixture for config_flow tests and test to completion
* Split uptime hndling into a new uptime sensor entity
* Drop server side events and internet callback
will bring this back with binary sensor Platform
* consolidate coordinator setup
* entity always include connections
* get_hostname tweak
* Add tests for init, coordinator and sensor
* Use custom type SmConfigEntry
* update sensor snapshot
* Drop reauth flow for later PR
* Use _async_setup for initial setup
* drop internet to be set later
* sensor fixes
* config flow re
* typing fixes
* Bump pysmlight dependency to 0.0.12
* dont trigger invalid auth message when first loading auth step
* Merge uptime sensors back into main sensor class
* clarify uptime handling
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* address review comments
* pass host as parameter to the dataCoordinator
* drop uptime sensors for a later PR
* update sensor test snapshot
* move coordinator unique_id to _async_setup
* fix CI
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* drop invalid_auth test tag
* use snapshot_platform, update fixtures
* Finish all tests with abort or create entry
* drop coordinator tests and remove hostname support
* add test for update failure on connection error
* use freezer for update_failed test
* fix pysmlight imports
---------
Signed-off-by: Tim Lunn <tl@smlight.tech>
Co-authored-by: Tim Lunn <tim@feathertop.org>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update opentherm_gw.binary_sensor to use entity_description
* Move binary_sensor related code to binary_sensor.py
Move common entity code to entity.py
* Remove unused logger from binary_sensor.py
* Add type hints
Address feedback