Marc Mueller
38adfbf1a3
Add empty line after module docstring [tests a-e] ( #112708 )
2024-03-08 08:50:25 -05:00
Robert Svensson
4437b3bc97
Fix deCONZ light entity might not report a supported color mode ( #112116 )
...
* Handle case where deCONZ light entity might not report a supported color mode
* If in an unknown color mode set ColorMode.UNKNOWN
* Fix comment from external discussion
2024-03-05 11:55:22 +01:00
Robert Svensson
b39b2d161c
Deconz fix gradient color mode ( #111890 )
...
* Fix deconz gradient colormode
* Fix gradient light not reporting color mode in deCONZ
2024-02-29 22:43:47 +01:00
Robert Svensson
195ef6d769
Fix lights reporting unsupported colormodes in deCONZ ( #108812 )
2024-01-25 08:38:57 +01:00
Robert Svensson
2a8a60b381
Improve LIDL christmas light detection in deCONZ ( #105155 )
2023-12-07 09:19:38 +01:00
Robert Svensson
a691bd26cf
Support Lidl christmas light effects in deCONZ ( #102731 )
2023-10-25 00:32:20 +02:00
Paul Bottein
c98c18f25e
Return 'None' for light attributes when off instead of removing them ( #101946 )
2023-10-19 01:08:08 +02:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
9f688a564f
Add type hints to integration tests (part 4) ( #87848 )
2023-02-11 08:26:13 +01:00
epenet
3052de3e8e
Add type hints to integration tests (d-e) ( #87699 )
2023-02-08 13:01:44 +01:00
epenet
7d2363ad22
Use light enums in tests ( #70801 )
2022-04-26 16:32:00 +02:00
schmyd
f135d77a27
Fix deconz light service parameter handling ( #62128 )
...
* Only check presence of values, not their content
* Add tests
* Revert "Only check presence of values, not their content"
This reverts commit 046f0ed5fd
.
* Validate existence of keys, not their values
* Properly handle cases of missing keys
2021-12-22 09:29:54 +01:00
Robert Svensson
c96f01df1f
Fix groups reporting incorrect supported color modes ( #53088 )
2021-07-19 10:32:21 +02:00
Robert Svensson
fd6b5ed072
Prefer using xy over hs when supported by light ( #52883 )
2021-07-12 08:17:50 +02:00
Robert Svensson
e22893a206
Make attestation of supported features easier to read (deCONZ test) ( #52096 )
...
Make is_deconz_group a constant
2021-06-22 20:34:25 +02:00
Robert Svensson
6814e9607a
Improve deCONZ lights supported_color_modes and tests ( #51933 )
...
* Improve deconz lights tests
* Simplify attribute definition
* Bump pydeconz to v80
2021-06-22 19:29:58 +02:00
Robert Svensson
b1022ce84e
Use supported color modes in deCONZ integration ( #51656 )
...
* Initial commit everything is working, need to reevaluate tests
* Fix supported color modes and hs_color
* Attest color mode
2021-06-10 08:51:58 +02:00
Erik Montnemery
443463e19d
Emulate color_temp for lights which support color or white ( #51654 )
...
* Emulate color_temp for lights which support color or white
* Support legacy lights
* Tidy up group.light code
* Improve color_temp to white conversion
* Remove color_temp to white conversion
* Add test
* Tweak deconz test
2021-06-09 11:23:01 +02:00
Erik Montnemery
154c849eac
Filter unsupported parameters from light service calls ( #51084 )
...
* Filter unsupported parameters from light service calls
* Silence pylint
* Fix deconz tests
* Fix mqtt tests
* Fix scene tests
* Fix trådfri emulated CT
* Fix mqtt tests
2021-05-26 08:02:59 +02:00
Robert Svensson
3f2d3bd1b2
Use websocket fixture in deCONZ light tests ( #47826 )
...
Localize test data
Improve asserts#
2021-03-18 11:01:32 +01:00
Robert Svensson
20f45f8ab9
Improve deCONZ tests by using aioclient_mock rather than patching web requests ( #45927 )
...
* Don't patch web requests, use aioclient_mock instead
* Remove stale prints
* Remove tests for old way of loading platforms
* Remove unused imports
2021-02-09 08:31:29 +01:00
Paulus Schoutsen
9e07910ab0
Mark entities as unavailable when they are removed but are still registered ( #45528 )
...
* Mark entities as unavailable when they are removed but are still registered
* Add sync_entity_lifecycle to collection helper
* Remove debug print
* Lint
* Fix tests
* Fix tests
* Update zha
* Update zone
* Fix tests
* Update hyperion
* Update rfxtrx
* Fix tests
* Pass force_remove=True from integrations
Co-authored-by: Erik <erik@montnemery.com>
2021-02-08 10:45:46 +01:00
Robert Svensson
22a6e55e70
Base deCONZ group supported features on the sum of all its lights ( #45440 )
2021-01-22 23:39:34 +01:00
Robert Svensson
18c7ae9a8b
Fix hs_color crashing when activating scenes in deCONZ on color_temp lights ( #45159 )
2021-01-22 22:40:22 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Robert Svensson
e2ef9d1afc
Some lights only support hs, like the lidl christmas lights ( #44059 )
2020-12-09 19:02:44 +01:00
Robert Svensson
55cbd5aa0d
Track deCONZ lib changes to light based devices ( #43366 )
...
* Improve control of covers
* Log backtrace if available
* Do not create entity for controller tool
Binary sensor should use state rather than is_tripped
Add some more tests to lights and sensors
* Bump dependency to v74
* Fix Balloobs comments
2020-11-23 11:37:11 +01:00
Robert Svensson
7eb532ddd0
Improve imports in deCONZ tests ( #41976 )
...
* Improve imports in deconz tests
* Add spacing
2020-10-17 11:20:06 -05:00
Robert Svensson
cbb4324c84
Refactor deCONZ tests ( #41362 )
...
* Use hass.config_entries.async_unload
* Return config_entry from setup_deconz_integration
2020-10-06 23:25:57 +02:00
Robert Svensson
552856203b
Clean deCONZ tests to depend less on integration code ( #41015 )
2020-10-02 11:20:33 +02:00
Robert Svensson
66a8edb11e
deCONZ fix comments from #40265 ( #40640 )
...
* Use set not list
* Events are not entities
* Don't await unload_events
* Remove checks of entities content in tests
* List to set comprehension
* Why is it so hard to remember that sets arent parenthesis...
2020-09-27 11:02:45 +02:00
Robert Svensson
203c556ba3
Improve tracking of existing entities in deconz ( #40265 )
...
* Store all entities in dict
* Use stored unique id to select if to create entity or not
* Remove unnecessary init
* Change so same physical sensor doesnt try to create multiple battery sensors
Change so groups get created properly
* Add controls in tests that entities are logged correctly
2020-09-25 22:49:28 +02:00
Robert Svensson
ceeea52915
Improve handling of mireds being far out of spec ( #40018 )
2020-09-13 16:31:39 +02:00
Robert Svensson
a6e9a312a3
deCONZ - Don't send off signals to light if already off ( #36357 )
2020-06-02 00:20:52 +02:00
Robert Svensson
07469127ce
deCONZ - Add support for max/min mireds ( #36355 )
...
* Add support for max/min mireds reported per light from deconz .77
* Bump dependency
2020-06-01 23:48:18 +02:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Robert Svensson
b5df2ba853
deCONZ - Directly reflect changes to config entry options ( #31661 )
...
* Directly reflect changes to config entry options
* Remove print
* Add tests
* Add title to config options
2020-02-18 13:24:25 -08:00
Robert Svensson
883b8f21ce
deCONZ - Library cleanup ( #31410 )
...
* Follow library changes
* Bump dependency to v70
* Fix test
2020-02-02 19:07:20 +01:00
Robert Svensson
b373c202c9
deCONZ - Add support for new switch type ( #31362 )
2020-02-01 17:08:49 +01:00
Paulus Schoutsen
9aa02e35a7
Entity Component to no longer generate automatic groups ( #23789 )
2020-01-07 17:30:53 +01:00
Robert Svensson
ec61342ec3
deCONZ - Improve tests based on Martins feedback in Axis integration ( #30438 )
2020-01-03 18:11:04 +01:00
Bas Nijholt
41cd678f00
Sort imports according to PEP8 for deconz ( #29659 )
2019-12-09 12:25:35 +01:00
Robert Svensson
57a3f7d5c8
Pass in parameters explicitly to DeconzSession ( #29617 )
...
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 ( #26709 )
...
* 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
8a39924b37
deCONZ improve light tests ( #26697 )
...
* Improve light tests
* Small improvements on light and group classes
2019-09-18 12:47:26 +02:00
Robert Svensson
518d2c31bb
deCONZ - use entity registry disabled_by to control available entities ( #26219 )
...
* First draft
* Support enabling disabled entities
* Clean up
* Move import
* Local entity enabled replaced during rebase
* Add option flow test
* Mark options properties with option
2019-09-05 16:38:00 -07:00
Robert Svensson
a2589f56e1
Add system options to config entries ( #25926 )
...
* Add system options to config entries
* For feedback
* Follow most of balloobs comments
* Fix balloobs comments
* Improvements
* Fix second round of Balloobs comments
* Fix third round
* Add system options to mock config entry
* Fix integration tests
* Fix the last failing tests
* Fix disabled string
* Fix failing disabled_by tests
* New tests
* Config entry WS API tests
* Fix comments
2019-08-17 21:34:11 -07:00
Paulus Schoutsen
6f357cb23e
First pass fixing tests that raise exceptions caught by asyncio.gather ( #25860 )
...
* First pass fixing tests that raise exceptions caught by asyncio.gather
* Fix demo test
* lint
2019-08-12 16:42:12 +02:00
Nikolay Vasilchuk
8b6ddc22a5
Fix deconz allow_clip_sensor and allow_deconz_groups options ( #25811 )
2019-08-09 19:31:58 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00