hass-core/tests/components/zha
TheJulianJES a58b3721ed
Restore state for ZHA OnOff binary sensors (#90749)
* Restore state for ZHA OnOff binary sensors

* Let `Motion` extend `Opening`

`Motion` is just a specified version of `Opening` that only changes the device class for some motion sensors.
Since we have more "special code" in the OnOff/Opening sensor now, we also want to make sure that gets applied to `Motion` binary sensors.

* Improve comment and type

* Add test to verify that binary sensors restore last HA state
2023-04-03 22:27:57 -04:00
..
__init__.py
common.py Adjust entity registry access in tests (3) (#88964) 2023-03-01 16:04:40 +01:00
conftest.py
data.py
test_alarm_control_panel.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_api.py Correctly load ZHA settings from API when integration is not running (#90476) 2023-03-29 17:24:26 -04:00
test_backup.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_base.py Fix ZHA definition error on received command (#90602) 2023-03-31 14:53:42 -04:00
test_binary_sensor.py Restore state for ZHA OnOff binary sensors (#90749) 2023-04-03 22:27:57 -04:00
test_button.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_channels.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_climate.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_config_flow.py Name the Yellow-internal radio and multi-PAN addon as ZHA serial ports (#88208) 2023-02-23 20:52:53 -05:00
test_cover.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_device.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_device_action.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_device_tracker.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_device_trigger.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_diagnostics.py Perform an energy scan when downloading ZHA diagnostics (#90605) 2023-03-31 15:37:00 -04:00
test_discover.py Adjust entity registry access in tests (3) (#88964) 2023-03-01 16:04:40 +01:00
test_fan.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_gateway.py Bump ZHA dependencies (#90547) 2023-03-30 20:55:01 -04:00
test_helpers.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_init.py ZHA network settings API (#88564) 2023-03-22 11:15:46 -04:00
test_light.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_lock.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_logbook.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_number.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_radio_manager.py
test_registries.py Fix quirk_class_validator in ZHA unit tests (#90140) 2023-03-27 11:57:40 -04:00
test_select.py Parse attribute reports for ZHA select entity (#89418) 2023-03-09 07:01:18 -05:00
test_sensor.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_siren.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_switch.py Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
test_websocket_api.py ZHA network settings API (#88564) 2023-03-22 11:15:46 -04:00
zha_devices_list.py