Sid
d5f883fbf0
Unignore Ruff PLR in tests ( #114470 )
...
* Unignore Ruff PLR in tests
* Address review comments
* review comments
* fix import
* Update test_api.py
* Update test_api.py
* Update test_api.py
2024-04-01 11:11:59 +02:00
Marc Mueller
87165c0d6e
Add empty line after module docstring [tests t-z] ( #112712 )
2024-03-08 14:44:56 +01:00
puddly
22dfa8797f
Bump ZHA dependencies ( #93989 )
...
* Make `find_entity_id` synchronous
* Remove `tries`
* Use new `attribute_updated` event signature
* Validate attributes before creating entities
* Avoid swallowing exceptions when opening covers
* Bump ZHA dependencies
* Add a matcher for Sinope water leak sensors using a non-standard ZCL attribute
* Ensure handler matching is strict, not multi
* Add type annotations for newly-updated functions
2023-06-14 21:42:31 -04:00
epenet
7427d4f323
Add type hints to integration tests (zha) ( #88309 )
2023-02-17 18:54:26 +01:00
TheJulianJES
f740312247
Fix some typos in ZHA comments ( #84881 )
...
* Fix copy paste errors
* Fix "setup/set up" usage
* Fix typo
* Fix comment
* Fix copy paste errors
* Remove space at end of comment
* Remove double word
* Fix copy paste errors
* Fix typos
* Apply review suggestion
* Upper-case zha (to ZHA) everywhere
* Review: fix "over rules"
* Review: most/more
2023-01-02 00:20:59 -05:00
epenet
4f31f28e67
Cleanup SourceType in tests ( #78809 )
2022-09-20 10:50:07 -04:00
J. Nick Koston
4bc5d7bfed
Speed up zha tests ( #73627 )
2022-06-17 11:41:10 -05:00
David F. Mulcahey
1eb5316d89
Remove unnecessary update_before_add from ZHA ( #71010 )
...
* Additional streamlining for ZHA entity init
* fix tests
2022-04-28 20:57:26 +02:00
David F. Mulcahey
a17031630f
Use Platform enum in ZHA ( #61016 )
2021-12-11 11:06:39 -05:00
Alexei Chetroi
c6888e4faf
Refactor ZHA tests ( #55844 )
...
* Replace ZHA tests FakeDevice
* Refactor ZHA tests to use zigpy devices and endpoints
* Use common consts for zigpy device mocks
Use the same dict key names for device signature mocks as zha quirks.
* Use const for test device list
* Update tests/components/zha/common.py
2021-09-06 19:00:06 -04:00
Alexei Chetroi
21acdbbbfd
Refactor ZHA Entity availability tracking ( #36645 )
...
* Refactor ZHA entity availability
ZHA entity availability tracks on underlying ZHA device availability.
* Update device status without signal.
* Update tests.
* Fix tests.
* Tests for restored devices availability.
* Guard against empty last_seen entry
Refactor device loading a bit.
2020-06-11 17:21:08 -04:00
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
David F. Mulcahey
3c487928d4
New scanner device tracker and ZHA device tracker support ( #24584 )
...
* initial implementation for zha device trackers
* constant
* review comments
* Revert "review comments"
This reverts commit 2130823566820dfc114dbeda08fcdf76ed47a4e7.
* rename device tracker entity
* update trackers
* raise when not implemented
* Update homeassistant/components/device_tracker/config_entry.py
Review comment
Co-Authored-By: Martin Hjelmare <marhje52@kth.se>
* move source type to base state attrs
* review comments
* review comments
* review comments
* fix super call
* fix battery and use last seen from device
* add test
* cleanup and add more to test
* cleanup post zha entity removal PR
* add tests for base entities
* rework entity tests
2019-07-04 12:44:39 +02:00