David F. Mulcahey
aa972b0005
Fix handling of attribute reports in ZHA sensors and binary sensors ( #32776 )
...
* Update sensor tests.
* Update light tests.
* Update binary_sensor tests.
* Update cover tests.
* Update device tracker tests.
* Update fan tests.
* Update lock tests.
* Update switch tests.
* add sensor attr to sensors
* add sensor attr to binary sensors
* cleanup extra var
Co-authored-by: Alexei Chetroi <alexei.chetroi@outlook.com>
2020-03-13 19:17:50 -04:00
Alexei Chetroi
52fe1328f6
ZHA tests refactoring ( #31744 )
...
* Refactor ZHA fixtures.
Patch Zigpy radio libs instead of ZHA when setting up fixtures.
Use new fixtures for binary_sensor.zha platform.
* Update ZHA api tests.
* Update ZHA channels and discovery tests.
* Update ZHA cover tests.
* Update device action/trigger tests.
* Update device_tracker.zha platform tests.
* Update fan.zha platform tests.
* Update ZHA gateway tests.
* Update lock.zha platform tests.
* Update switch.zha platform tests.
* Update sensor.zha platform tests.
* Update light.zha platform tests.
* Use MockConfigEntry.
* Address PR comments.
2020-02-12 16:12:14 -05:00
Alexei Chetroi
28eeed1db3
ZHA tests refactoring ( #31682 )
...
* Fixtures for restoring/joning a device.
* binary_sensor.zha tests.
* cover.zha platform tests.
* device_tracker.zha platform tests.
* fan.zha platform tests.
* switch.zha platform tests.
* Update light.zha platform tests.
* Update sensor.zha platform tests.
* ZHA api tests refactoring.
* Update lock.zha platform tests.
* Update ZHA gateway tests.
* Update zha device action tests.
* Update zha device trigger tests.
* Cleanup.
2020-02-09 21:45:35 -05:00
Alexei Chetroi
89213a4ce8
Don't set entity_id in ZHA entities ( #28362 )
...
* Don't set entity_id on ZHA entities.
* Update tests.
* Use comma as separator for multiple channel names.
* Address PR comments.
2019-10-31 12:31:06 -04:00
Alexei Chetroi
fe7c45b363
Move remaining of ZHA imports to top level. ( #28071 )
...
* Move ZHA import to top level.
* ZHA tests: move imports to top level.
2019-10-21 19:30:56 -04:00
Alexei Chetroi
a0c50f4794
Leverage zigpy for IEEE address conversions ( #27972 )
...
* Refactor EUI64 conversions.
* Update ZHA dependencies.
* Update tests.
2019-10-21 13:14:17 -04:00
Alexei Chetroi
9c0fbfd101
Bump up ZHA dependencies ( #26746 )
...
* Update ZHA to track zigpy changes.
* Update ZHA dependencies.
* Update tests.
* Make coverage happy again.
2019-09-23 13:35:27 -04:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
presslab-us
cb460a85ba
Add support for ZHA door locks #2 ( #24344 )
...
* Add support for DoorLock cluster
* Add test for zha lock
* Change lock_state report to REPORT_CONFIG_IMMEDIATE
* Update channel command wrapper to return the entire result
This allows for return values other than result[1]
* Fix tests
* Fix lint
* Update DoorLock test to work with updated zigpy schema
* Fix lint
* Fix unlock test
2019-06-07 11:16:33 -04:00