-
- Downloads
New Integration: SMLIGHT SLZB-06 Adapters Integration (#118675)
* 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>
Showing
- CODEOWNERS 2 additions, 0 deletionsCODEOWNERS
- homeassistant/components/smlight/__init__.py 30 additions, 0 deletionshomeassistant/components/smlight/__init__.py
- homeassistant/components/smlight/config_flow.py 151 additions, 0 deletionshomeassistant/components/smlight/config_flow.py
- homeassistant/components/smlight/const.py 11 additions, 0 deletionshomeassistant/components/smlight/const.py
- homeassistant/components/smlight/coordinator.py 71 additions, 0 deletionshomeassistant/components/smlight/coordinator.py
- homeassistant/components/smlight/entity.py 31 additions, 0 deletionshomeassistant/components/smlight/entity.py
- homeassistant/components/smlight/manifest.json 15 additions, 0 deletionshomeassistant/components/smlight/manifest.json
- homeassistant/components/smlight/sensor.py 103 additions, 0 deletionshomeassistant/components/smlight/sensor.py
- homeassistant/components/smlight/strings.json 49 additions, 0 deletionshomeassistant/components/smlight/strings.json
- homeassistant/generated/config_flows.py 1 addition, 0 deletionshomeassistant/generated/config_flows.py
- homeassistant/generated/integrations.json 6 additions, 0 deletionshomeassistant/generated/integrations.json
- homeassistant/generated/zeroconf.py 3 additions, 0 deletionshomeassistant/generated/zeroconf.py
- requirements_all.txt 3 additions, 0 deletionsrequirements_all.txt
- requirements_test_all.txt 3 additions, 0 deletionsrequirements_test_all.txt
- tests/components/smlight/__init__.py 1 addition, 0 deletionstests/components/smlight/__init__.py
- tests/components/smlight/conftest.py 74 additions, 0 deletionstests/components/smlight/conftest.py
- tests/components/smlight/fixtures/info.json 16 additions, 0 deletionstests/components/smlight/fixtures/info.json
- tests/components/smlight/fixtures/sensors.json 14 additions, 0 deletionstests/components/smlight/fixtures/sensors.json
- tests/components/smlight/snapshots/test_init.ambr 33 additions, 0 deletionstests/components/smlight/snapshots/test_init.ambr
- tests/components/smlight/snapshots/test_sensor.ambr 741 additions, 0 deletionstests/components/smlight/snapshots/test_sensor.ambr
Loading
Please register or sign in to comment