core/tests/components/zha
puddly 4ec75d6ca7
Use new zigpy OTA providers for ZHA (#111159)
* Use `None` instead of `"unknown"` when the current version is unknown

* Only use the current file version from the OTA notification

* Use `sw_version`, if available, and update `current_file_version`

* Assume the current version is the latest version

* Fix lint errors

* Use `image` instead of `firmware`

* Include a changelog if updates expose it

* Clear latest firmware only after updating the installed version

* Bump minimum zigpy version to 0.63.0

* Create a data update coordinator to consolidate updates

* Fix overridden `async_update`

* Fix most unit tests

* Simplify `test_devices` to fix current tests

* Use a dict comprehension for creating mocked entities

* Fix unit tests (thanks @dmulcahey!)

* Update the currently installed version on cluster attribute update

* Drop `PARALLEL_UPDATES` now that we use an update coordinator

* Drop `_reset_progress`, it is already handled by the update component

* Do not update the progress if we are not supposed to be updating

* Ignore latest version (e.g. if device attrs changed) if zigpy rejects it

* Clean up handling of command id in `Ota.cluster_command`

* Start progress at 1%: 0 and False are considered equal and are filtered!

Use `ceil` instead of remapping 1-100

* The installed version will be auto-updated when the upgrade succeeds

* Avoid 1 as well, it collides with `True`

* Bump zigpy to (unreleased) 0.63.2

* Fix unit tests

* Fix existing unit tests

Send both event types

Globally enable sending both event types

* Remove unnecessary branches

* Test ignoring invalid progress callbacks

* Test updating a device with a no longer compatible firmware
2024-02-28 14:38:04 -05:00
..
__init__.py
common.py
conftest.py Use new zigpy OTA providers for ZHA (#111159) 2024-02-28 14:38:04 -05:00
data.py
test_alarm_control_panel.py
test_api.py
test_backup.py
test_base.py
test_binary_sensor.py
test_button.py
test_climate.py
test_cluster_handlers.py
test_config_flow.py Use discovery flow helper for hardware integrations (#111437) 2024-02-26 12:04:33 -05:00
test_cover.py
test_device.py
test_device_action.py
test_device_tracker.py
test_device_trigger.py
test_diagnostics.py Add device list to ZHA config entry diagnostics (#111549) 2024-02-27 06:44:26 -05:00
test_discover.py Use new zigpy OTA providers for ZHA (#111159) 2024-02-28 14:38:04 -05:00
test_fan.py Migrate zha to use Debouncer.async_schedule_call (#111103) 2024-02-23 07:28:23 -10:00
test_gateway.py Migrate zha to use async_update_entry to alter config entries (#110402) 2024-02-12 21:24:56 +01:00
test_helpers.py
test_init.py Migrate zha to use async_update_entry to alter config entries (#110402) 2024-02-12 21:24:56 +01:00
test_light.py
test_lock.py
test_logbook.py
test_number.py
test_radio_manager.py
test_registries.py
test_repairs.py
test_select.py
test_sensor.py Add device counter entities to ZHA (#111175) 2024-02-23 13:22:47 -05:00
test_silabs_multiprotocol.py
test_siren.py
test_switch.py
test_update.py Use new zigpy OTA providers for ZHA (#111159) 2024-02-28 14:38:04 -05:00
test_websocket_api.py
zha_devices_list.py