Commit graph

11 commits

Author SHA1 Message Date
Duco Sebel
b41d0be952
Improve HomeWizard request issue reporting ()
* Trigger reauth flow when HomeWizard API was disabled

* Add tests for reauth flow

* Fix typo in test

* Add parallel updates constant

* Improve error message when device in unreachable during config

* Set quality scale

* Remove quality scale

* Throw error instead of abort when setup fails

* Adjust test for new setup behaviour

* Trigger reauth flow when API is disabled and continue retrying

* Reload entry and raise AuthFailed during init

* Abort running config flow

* Listen for coordinator updates to trigger reload

* Use build-in backoff system

* Fix failing test

* Test reauth flow is active after disable-api init

* Test reauth flow removal
2022-12-16 10:53:54 -05:00
Franck Nijhof
5b32540a84
Set water device class to flo, homewizard, p1_monitor, toon () 2022-10-25 13:21:47 +02:00
epenet
fb7079c62c
Adjust icons with new device classes ()
* Adjust icons with new device classes

* Fix mysensors tests

* Fix mysensors tests
2022-09-30 10:41:18 +02:00
Duco Sebel
aa6f15b1e2
Use SensorDeviceClass.VOLUME in HomeWizard ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-09-29 21:51:18 -04:00
epenet
fe747601ff
Cleanup DeviceClass and StateClass in tests () 2022-09-20 10:49:11 -04:00
Duco Sebel
5fdae0fc5b
Migrate HomeWizard to new entity naming style () 2022-07-12 15:56:16 +02:00
Duco Sebel
124c8e8f73
Add sensors for HomeWizard Watermeter ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-07-09 18:39:30 +02:00
Duco Sebel
88c49f034a
Use 'python-homewizard-energy' dependency for HomeWizard ()
* Update requirement

* Remove aiohwenergy and use python-homewizard-energy

* Update test to work with python-homewizard-energy

* Bumb python-homewizard-energy to 1.0.3
2022-05-25 09:05:11 +02:00
Erik Montnemery
23ee8adf59
Fix flaky homewizard test () 2022-02-03 09:23:32 +01:00
Duco Sebel
19c65abaa6
Fix initial HomeWizard integration issues ()
* Use helper for setup and unload

* Set mutable object in __init__

* Move logic out of try..except

* Print stack trace on error in config flow

* Don't catch broad except in update_coordinator, already handled

* Fix typo

* Combine available with super.available()

* Fix issues with config_flow test

* Test coordiantor indirectly

* Test coordinator by moving time forward

* set utcnow beforehand and increase timedelta

* Roll back f658749

* Rolled back the rollback and fixed timing

* Move setting time after adding to hass
2022-01-14 19:28:24 +01:00
Duco Sebel
8f6e24aa1e
Add HomeWizard Energy integration ()
Co-authored-by: Matthias Alphart <farmio@alphart.net>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-01-10 16:23:31 -08:00