* Add button for router reconnect
* strings for router reconnect
* remove stale router reconnect if zigbee is not running router firmware
* Add tests for router reconnect button
* Update homeassistant/components/smlight/strings.json
And fix associated tests
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Make router button entity dynamic
* adjust test for dynamic runtime removal
* drop if statements from tests
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Dont launch SSE client for core firmware 0.9.9
* Dont offer updates on core firmware 0.9.9
* Add correct firmware done event for legacy v2 firmware
* test update legacy v2 firmware
* Dont raise issue for firmware v2
* Add vpn_status sensor
* update test fixures with new attributes
* Add vpn enabled switch
vpn strings
* Add vpn switch to test
* update snapshots
* Add vpn status to disabled by default test
* Add internet sensor updated by events
* Strings for internet sensor
* Update binary_sensor snapshot with internet sensor
* Add test for internet sensor
* Address review comments
---------
Co-authored-by: Tim Lunn <tim@feathertop.org>
* Move entity category to class
* improve type hints
* Regenerate sensor snapshots to remove some invalid entries
* Add info sensors that display various device settings/modes
* Add strings for info sensors
* Update sensor snapshot with new sensors
* Use StateType
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Use icon translations
* statetype
* drop ip sensor
* Lookup enum values before translating
* entities use options
* update options strings
strings
* lookup values from options
* update sensor snapshot
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update Info fixture with new fields from pysmlight 0.0.14
* Create repair if device is running unsupported firmware
* Add test for legacy firmware info
* Add strings for repair issue
* Add reauth flow for smlight integration
* add strings for reauth
* trigger reauth flow on authentication errors
* Add tests for reauth flow
* test for update failed on auth error
* restore name title placeholder
* raise config entry error to trigger reauth
* Add test for reauth triggered at startup
---------
Co-authored-by: Tim Lunn <tim@feathertop.org>
* Add uptime sensor as derived sensor class
* Add strings for uptime sensors
* Update sensor tests to include uptime sensors
* test zigbee uptime when disconnected
* 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>