core/tests/components/zha
Alexei Chetroi 54c4e9335f
Refactor ZHA sensor initialization (#43339)
* Refactor ZHA sensors to use cached values after restart

* Get attr from cluster, not channel

* Run cached state through formatter method

* Use cached values for div/multiplier for SmartEnergy channel

* Restore batter voltage from cache

* Refactor sensor to use cached values only

* Update tests

* Add battery sensor test
2020-11-18 21:34:12 -05:00
..
__init__.py
common.py Refactor ZHA tests to allow attribute reads during device initialization (#43357) 2020-11-18 19:12:38 -05:00
conftest.py Stub light profiles (#42232) 2020-10-23 16:28:21 +02:00
test_api.py Add Neighbors & Endpoint Names to zha/devices reply (#40748) 2020-09-29 15:25:05 -04:00
test_binary_sensor.py Add Neighbors & Endpoint Names to zha/devices reply (#40748) 2020-09-29 15:25:05 -04:00
test_channels.py Include device_id in ZHA event (#43037) 2020-11-10 12:43:15 +01:00
test_climate.py Refactor ZHA tests to allow attribute reads during device initialization (#43357) 2020-11-18 19:12:38 -05:00
test_config_flow.py Upgrade black to 20.8b1 (#39287) 2020-08-27 13:56:20 +02:00
test_cover.py Refactor ZHA tests to allow attribute reads during device initialization (#43357) 2020-11-18 19:12:38 -05:00
test_device.py Add Neighbors & Endpoint Names to zha/devices reply (#40748) 2020-09-29 15:25:05 -04:00
test_device_action.py Add Neighbors & Endpoint Names to zha/devices reply (#40748) 2020-09-29 15:25:05 -04:00
test_device_tracker.py
test_device_trigger.py Add Neighbors & Endpoint Names to zha/devices reply (#40748) 2020-09-29 15:25:05 -04:00
test_discover.py Bump up ZHA dependencies (#42679) 2020-11-01 11:05:55 -05:00
test_fan.py Add Neighbors & Endpoint Names to zha/devices reply (#40748) 2020-09-29 15:25:05 -04:00
test_gateway.py Cleanup unused loggers (components N-Z + tests) (#41982) 2020-10-16 21:24:08 -05:00
test_init.py
test_light.py Bump up ZHA dependencies (#42679) 2020-11-01 11:05:55 -05:00
test_lock.py
test_registries.py
test_sensor.py Refactor ZHA sensor initialization (#43339) 2020-11-18 21:34:12 -05:00
test_switch.py Bump up ZHA dependencies (#42679) 2020-11-01 11:05:55 -05:00
zha_devices_list.py Add ZHA Analog Input cluster for XBee (#41311) 2020-10-06 16:01:51 -04:00