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
605f65b75d
Make use of entry id rather than unique id when storing deconz entry in hass.data ( #52584 )
...
* Make use of entry id rather than unique id when storing entry in hass data
* Update homeassistant/components/deconz/services.py
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-07-06 17:18:54 +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
Ville Skyttä
77d5244577
Use device registry CONNECTION_* constants ( #49923 )
2021-04-30 23:58:50 +02:00
Franck Nijhof
c68b259bd3
Cleanup of unused connection_class logic ( #49865 )
...
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-04-29 23:12:58 +02:00
Robert Svensson
056f636568
Add tampering sensor to deCONZ integration ( #49776 )
2021-04-28 20:16:06 +02:00
Robert Svensson
5e07ab17b2
Add support for deCONZ alarm events in logbook ( #49652 )
...
* Add support for alarm events in logbook
* Update homeassistant/components/deconz/alarm_control_panel.py
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2021-04-28 19:46:15 +02:00
Robert Svensson
311e0e4185
Last minute tweaks to deCONZ alarm panel entity service( #49819 )
...
Text for entry and exit delay was wrong
Remove functions that need a bit more investigating
2021-04-28 18:54:53 +02:00
Robert Svensson
58ad3b61f7
Entities for secondary temperature values created by certain Xiaomi devices in deCONZ ( #49724 )
...
* Create sensors for secondary temperature values created by certain Xiaomi devices
* Fix tests
2021-04-27 08:43:06 +02:00
Ville Skyttä
153d6e891e
Use config_entries.SOURCE_* constants ( #49631 )
2021-04-25 11:27:40 +02:00
Robert Svensson
b0fecdcc3d
Add entity service for deCONZ alarm control panel to control states used to help guide user transition between primary states ( #49606 )
2021-04-24 15:46:16 +02:00
Robert Svensson
34245c3add
Add alarm control panel support to deCONZ integration ( #48736 )
...
* Infrastructure in place
* Base implementation
* Add alarm event
* Add custom services to alarm control panel
* Add service descriptions
* Increase test coverage
* Simplified to one entity service with an options selector
* Remove everything but the essentials
* Add library with proper support
* Fix stale comments
2021-04-20 17:34:11 +02:00
Robert Svensson
c80f34a754
Add support for ZHADoorLock locks to deCONZ integration( #48516 )
2021-03-31 09:36:06 +02:00
Franck Nijhof
52475c108f
Make integration setup optional ( #48381 )
2021-03-29 13:53:47 -07:00
Robert Svensson
70d9e8a582
Add proper percentage support to deCONZ fan integration ( #48187 )
...
* Add proper percentage support to deCONZ fan integration
* Properly convert speed to percentage
* Remove disabled method
* Replace convert_speed with a dict
2021-03-23 22:29:55 +01:00
Robert Svensson
1095d93892
Increase test coverage of deCONZ device triggers ( #48126 )
...
* Increase test coverage of deCONZ device triggers
* Revert removed new line
* Found a way to explicitly assert that exceptions are raised
* Remove unnecessary block till done
* Fix unnecessary elif
* Fix review comments
* Remove helper tests
2021-03-23 13:49:44 +01:00
Robert Svensson
863f75e65e
Improve test coverage of deconz_device ( #48141 )
2021-03-20 14:22:01 +01:00
Robert Svensson
24e067782a
Improve sensor coverage by verifying daylight sensor attributes ( #48090 )
2021-03-19 16:51:44 +01:00
Robert Svensson
fa5ce70af1
Improve test coverage of deCONZ config flow ( #48091 )
2021-03-19 13:37:22 +01:00
Marc Mueller
54d1e9985f
Update typing 15 ( #48079 )
2021-03-18 15:13:22 +01:00
Robert Svensson
8b8a54b367
Improve deCONZ services and scenes tests ( #47829 )
...
Use patch.dict rather than deep copy to change DECONZ_WEB_REQUEST
2021-03-18 11:57:56 +01:00
Robert Svensson
ad5dbebc03
Use websocket fixture in deCONZ switch tests ( #47831 )
...
Localize test data
Improve asserts
2021-03-18 11:44:52 +01:00
Robert Svensson
a4b2dff58d
Use websocket fixture in deCONZ sensor tests ( #47830 )
...
Localize test data
Improve asserts
2021-03-18 11:41:27 +01:00
Robert Svensson
a21d0cadf8
Use websocket fixture in deCONZ lock tests ( #47827 )
...
Localize test data
Improve asserts
2021-03-18 11:06:44 +01: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
7350215b4e
Use websocket fixture in deCONZ fan tests ( #47824 )
...
Localize test data
Improve asserts
2021-03-18 10:49:48 +01:00
Robert Svensson
7ff9610e67
Use websocket fixture in deCONZ event related tests ( #47823 )
...
Localize test data
Improve asserts
2021-03-18 10:44:31 +01:00
Robert Svensson
a57d340037
Use websocket fixture in deCONZ cover tests ( #47822 )
...
Localize test data
Improve asserts
2021-03-18 10:07:11 +01:00
Robert Svensson
2ab640aaef
Use websocket fixture in deCONZ climate tests ( #47821 )
...
Localize test data
Improve asserts
2021-03-18 09:57:27 +01:00
Robert Svensson
333f5da036
Use websocket fixture in deCONZ binary sensor tests ( #47820 )
...
Localize test data
Improve asserts
2021-03-18 09:51:42 +01:00
Robert Svensson
786cbcc1d6
Introduction of deCONZ websocket fixture ( #47812 )
2021-03-12 12:03:29 -08:00
Robert Svensson
6b03c8d126
Improve deCONZ init tests ( #47825 )
...
Use patch.dict rather than deep copy to change DECONZ_WEB_REQUEST
2021-03-12 12:02:15 -08:00
Erik Montnemery
87e7cebd36
Update tests c-h to use registry async_get ( #47652 )
2021-03-09 14:31:17 +01: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
Robert Svensson
6b0c569a70
Normally there should only be one battery sensor per device from deCONZ. ( #46761 )
...
With these Danfoss devices each endpoint can report its own battery state.
2021-02-25 09:54:46 +01:00
Jan-Willem Mulder
75b37b4c2a
Expose locked attribute in deCONZ climate platform ( #46814 )
2021-02-22 07:53:58 +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
60e3fce7dc
Convert old deCONZ groups unique ids ( #46093 )
...
* Convert old groups unique ids
Work around for walrus operator not working properly :/
* Remove CONF_GROUP_ID_BASE once entities unique id are updated
* Don't use migrate_entry mechanism to update unique_ids of groups
* Remove walrus operator :(
* Fix review comments
* Walrusify assignment to old_unique_id
2021-02-06 14:32:17 +01:00
Robert Svensson
434b4dfa58
Improve deCONZ logbook to be more robust in different situations ( #46063 )
2021-02-05 23:07:12 +01:00
Robert Svensson
622906965d
Add better message to deCONZ event logbook when information is available ( #45545 )
...
* Add better message when information is available
* Fix pylint
2021-01-26 08:15:39 +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
57fa7f926a
Introduce reauth flow to deCONZ ( #45443 )
2021-01-22 23:37:16 +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
Robert Svensson
aaf4cd4a25
Basic logbook support for deCONZ events ( #45400 )
...
* Basic logbook support
* Improve formulation of message
* Improve typing
2021-01-22 22:39:11 +01:00