Commit graph

10 commits

Author SHA1 Message Date
Robert Svensson
cbb4324c84
Refactor deCONZ tests ()
* Use hass.config_entries.async_unload

* Return config_entry from setup_deconz_integration
2020-10-06 23:25:57 +02:00
Robert Svensson
9d56d3bb31
Add deCONZ service to clean up orphaned device and entity entries ()
* Add service that can clean up by deCONZ orphaned entries from device and entity registry

* Fix existing tests

* Add new test

* Add some inline comment to the service
2020-09-30 20:11:41 +02:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 () 2020-04-30 13:29:50 -07:00
Robert Svensson
7b29a498c6 Fix issue with group unique id when normalising bridge id () 2020-01-17 15:28:34 -08:00
Robert Svensson
ec61342ec3
deCONZ - Improve tests based on Martins feedback in Axis integration () 2020-01-03 18:11:04 +01:00
Robert Svensson
0a4f3ec1ec Use config entry unique id for deCONZ ()
* Use config entry unique id

* Clean up

* Backwards compatiblity note

* Fix some of Balloobs comments

* Bump dependency to v66

* Black somehow missed config flow tests...

* Move set unique ID til after possibility to update existing entry
2020-01-03 11:50:53 +01:00
Bas Nijholt
41cd678f00 Sort imports according to PEP8 for deconz () 2019-12-09 12:25:35 +01:00
Robert Svensson
57a3f7d5c8
Pass in parameters explicitly to DeconzSession ()
Dont pass in loop to DeconzSession
Services will use new refresh state method
2019-12-08 16:53:34 +01:00
Robert Svensson
f5d12669a5 deCONZ improve gateway tests ()
* Improve gateway tests

* Harmonize all tests to use the same gateway initialization method

* Improve scene tests

* Add gateway resync call to platform tests

* Forgot to change switch tests to use common gateway method

* Improve event tests
2019-09-19 14:44:09 -07:00
Robert Svensson
5116d02747 deCONZ - Improve service tests ()
* Improve configure service tests

* Add refresh device service test

* Add tests for setup and unload services

* Remove refresh device test from test_init

* Extra verification of deconz services existance in hass.data
2019-09-16 10:08:13 +02:00