Classes | |
| class | EntityRef |
| class | EntityUsage |
Functions | |
| None | async_deprecate_hdr (HomeAssistant hass, UFPConfigEntry entry) |
| None | async_migrate_data (HomeAssistant hass, UFPConfigEntry entry, ProtectApiClient protect, Bootstrap bootstrap) |
| dict[str, EntityUsage] | check_if_used (HomeAssistant hass, UFPConfigEntry entry, dict[str, EntityRef] entities) |
| None | create_repair_if_used (HomeAssistant hass, UFPConfigEntry entry, str breaks_in, dict[str, EntityRef] entities) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
UniFi Protect data migrations.
| None homeassistant.components.unifiprotect.migrate.async_deprecate_hdr | ( | HomeAssistant | hass, |
| UFPConfigEntry | entry | ||
| ) |
Check for usages of hdr_mode switch and raise repair if it is used. UniFi Protect v3.0.22 changed how HDR works so it is no longer a simple on/off toggle. There is Always On, Always Off and Auto. So it has been migrated to a select. The old switch is now deprecated. Added in 2024.4.0
Definition at line 116 of file migrate.py.
| None homeassistant.components.unifiprotect.migrate.async_migrate_data | ( | HomeAssistant | hass, |
| UFPConfigEntry | entry, | ||
| ProtectApiClient | protect, | ||
| Bootstrap | bootstrap | ||
| ) |
Run all valid UniFi Protect data migrations.
Definition at line 102 of file migrate.py.
| dict[str, EntityUsage] homeassistant.components.unifiprotect.migrate.check_if_used | ( | HomeAssistant | hass, |
| UFPConfigEntry | entry, | ||
| dict[str, EntityRef] | entities | ||
| ) |
Check for usages of entities and return them.
Definition at line 40 of file migrate.py.
| None homeassistant.components.unifiprotect.migrate.create_repair_if_used | ( | HomeAssistant | hass, |
| UFPConfigEntry | entry, | ||
| str | breaks_in, | ||
| dict[str, EntityRef] | entities | ||
| ) |
Create repairs for used entities that are deprecated.
Definition at line 68 of file migrate.py.
|
private |
Definition at line 22 of file migrate.py.