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
test_api.py
test_binary_sensor.py
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
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
test_device_action.py
test_device_tracker.py
test_device_trigger.py
test_discover.py
test_fan.py
test_gateway.py
test_init.py
test_light.py
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
zha_devices_list.py