core/tests/components/zha
puddly cbb28b6943
Migrate internal ZHA data to a dataclasses (#100127)
* Cache device triggers on startup

* reorg zha init

* don't reuse gateway

* don't nuke yaml configuration

* review comments

* Add unit tests

* Do not cache device and entity registries

* [WIP] Wrap ZHA data in a dataclass

* [WIP] Get unit tests passing

* Use a helper function for getting the gateway object to fix annotations

* Remove `bridge_id`

* Fix typing issues with entity references in group websocket info

* Use `Platform` instead of `str` for entity platform matching

* Use `get_zha_gateway` in a few more places

* Fix flaky unit test

* Use `slots` for ZHA data

Co-authored-by: J. Nick Koston <nick@koston.org>

---------

Co-authored-by: David F. Mulcahey <david.mulcahey@icloud.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-09-11 21:39:33 +02:00
..
__init__.py
common.py Migrate internal ZHA data to a dataclasses (#100127) 2023-09-11 21:39:33 +02:00
conftest.py Migrate internal ZHA data to a dataclasses (#100127) 2023-09-11 21:39:33 +02:00
data.py
test_alarm_control_panel.py
test_api.py Migrate internal ZHA data to a dataclasses (#100127) 2023-09-11 21:39:33 +02:00
test_backup.py
test_base.py
test_binary_sensor.py
test_button.py Wrap most ZHA exceptions in `HomeAssistantError` (#98421) 2023-08-28 17:24:12 -04:00
test_climate.py Wrap most ZHA exceptions in `HomeAssistantError` (#98421) 2023-08-28 17:24:12 -04:00
test_cluster_handlers.py Migrate internal ZHA data to a dataclasses (#100127) 2023-09-11 21:39:33 +02:00
test_config_flow.py Cache device trigger info during ZHA startup (#99764) 2023-09-11 14:36:01 +02:00
test_cover.py Wrap most ZHA exceptions in `HomeAssistantError` (#98421) 2023-08-28 17:24:12 -04:00
test_device.py
test_device_action.py Migrate internal ZHA data to a dataclasses (#100127) 2023-09-11 21:39:33 +02:00
test_device_tracker.py
test_device_trigger.py Migrate internal ZHA data to a dataclasses (#100127) 2023-09-11 21:39:33 +02:00
test_diagnostics.py Migrate internal ZHA data to a dataclasses (#100127) 2023-09-11 21:39:33 +02:00
test_discover.py Migrate internal ZHA data to a dataclasses (#100127) 2023-09-11 21:39:33 +02:00
test_fan.py Migrate internal ZHA data to a dataclasses (#100127) 2023-09-11 21:39:33 +02:00
test_gateway.py Migrate internal ZHA data to a dataclasses (#100127) 2023-09-11 21:39:33 +02:00
test_helpers.py
test_init.py Cache device trigger info during ZHA startup (#99764) 2023-09-11 14:36:01 +02:00
test_light.py Migrate internal ZHA data to a dataclasses (#100127) 2023-09-11 21:39:33 +02:00
test_lock.py
test_logbook.py
test_number.py Wrap most ZHA exceptions in `HomeAssistantError` (#98421) 2023-08-28 17:24:12 -04:00
test_radio_manager.py Cache device trigger info during ZHA startup (#99764) 2023-09-11 14:36:01 +02:00
test_registries.py
test_repairs.py Create a ZHA repair when directly accessing a radio with multi-PAN firmware (#98275) 2023-09-01 09:05:45 -04:00
test_select.py
test_sensor.py
test_silabs_multiprotocol.py Migrate internal ZHA data to a dataclasses (#100127) 2023-09-11 21:39:33 +02:00
test_siren.py
test_switch.py Migrate internal ZHA data to a dataclasses (#100127) 2023-09-11 21:39:33 +02:00
test_websocket_api.py Migrate internal ZHA data to a dataclasses (#100127) 2023-09-11 21:39:33 +02:00
zha_devices_list.py