Commit Graph

22 Commits (b64c21cce62565a26ebed21fe78ce6b9dd627e37)

Author SHA1 Message Date
Robert Svensson 9b4cf873c1
Replace ConfigEntry with MockConfigEntry in deCONZ tests (#122631) 2024-07-26 09:36:41 +02:00
Robert Svensson e6ef8a34a7
Tweak deCONZ init and hub tests (#122484)
* Improve typing of init tests

* Clean up gateway test

* Validate deconz device registry entry

* Rename gateway to hub

* Snake case BRIDGEID to BRIDGE_ID
2024-07-23 22:29:48 +03:00
Robert Svensson 4ee256633b
Deduplicate light data with deCONZ websocket fixture (#122421) 2024-07-23 08:40:30 +02:00
Robert Svensson c61efe931a
Deduplicate more fixture data related to deCONZ websocket sensor (#122412) 2024-07-22 21:37:58 +02:00
Robert Svensson 48661054d9
Improve fixture usage for sensor based deCONZ tests (#122297) 2024-07-21 13:56:16 +02:00
Robert Svensson ecffae0b4f
Improve fixture usage for light based deCONZ tests (#122209) 2024-07-20 11:25:00 +02:00
Marc Mueller 0be68dcd7f
Fix deconz conftest typing (#122173) 2024-07-19 13:10:38 +02:00
Robert Svensson cce77affc7
Provide default values for common keys in deCONZ websocket fixture (#121359) 2024-07-06 10:52:50 +02:00
Robert Svensson 1b8944dab6
Improve deCONZ websocket fixture (#121332) 2024-07-05 22:35:06 +02:00
Robert Svensson 178655647d
Use fixtures in deCONZ init tests (#121217) 2024-07-05 19:17:47 +02:00
Robert Svensson eb5a98e7ea
Use fixtures in deCONZ light tests PT2 (#121208) 2024-07-05 10:57:17 +02:00
Robert Svensson 873d96bab3
Use fixtures in deCONZ binary sensor tests (#120966) 2024-07-04 14:21:26 +02:00
Robert Svensson 02e7707f91
Use fixtures in deCONZ config flow tests PT1 (#121121) 2024-07-04 04:49:46 -05:00
Robert Svensson 0ffebd4853
Use fixtures in deCONZ button tests (#120958) 2024-07-01 20:48:33 +02:00
Robert Svensson 44640ef9e8
First step towards fixtures in deCONZ tests (#120863)
* config entry fixture

* Mock web request

* Make siren tests use new fixtures

* Replace old constants

* Add mock put request

* Change comment
2024-07-01 12:33:51 +02:00
Marc Mueller 38adfbf1a3
Add empty line after module docstring [tests a-e] (#112708) 2024-03-08 08:50:25 -05:00
Robert Svensson c2f026d0a7
Minor deCONZ clean up (#76323)
* Rename secondary_temperature with internal_temperature

* Prefix binary and sensor descriptions matching on all sensor devices with COMMON_

* Always create entities in the same order

Its been reported previously that if the integration is removed and setup again that entity IDs can change if not sorted in the numerical order

* Rename alarmsystems to alarm_systems

* Use websocket enums

* Don't use legacy pydeconz constants

* Bump pydeconz to v103

* unsub -> unsubscribe
2022-08-06 01:34:27 +02:00
Robert Svensson 539ef31046
Reflect changes to pydeconz v84 (#56361)
Mostly snake case conversions and typing
But also a change in retry mechanism
Added a more complete set_* call to most types to remove the direct relation to rest API of deCONZ
2021-09-18 09:05:08 +02:00
Marc Mueller 54d1e9985f
Update typing 15 (#48079) 2021-03-18 15:13:22 +01:00
Robert Svensson 786cbcc1d6
Introduction of deCONZ websocket fixture (#47812) 2021-03-12 12:03:29 -08:00
Ville Skyttä dc880118a4
Lint suppression cleanups (#47248)
* Unused pylint suppression cleanups

* Remove outdated pylint bug references

* Add flake8-noqa config and note to run it every now and then

* Add codes to noqa's

* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
Paulus Schoutsen 5dac3883b0
Stub light profiles (#42232) 2020-10-23 16:28:21 +02:00