456 files
This commit is contained in:
@@ -1563,13 +1563,22 @@ async def async_setup_entry(hass: HomeAssistant, entry: MaintenanceSupporterConf
|
||||
# would drop any change still sitting in its debounce window.
|
||||
|
||||
# Catalog triggers written by a signature that could never fire
|
||||
# (gree/daikin hvac_action runtime, 2026-09-25) are repaired once.
|
||||
# (gree/daikin hvac_action runtime, 2026-09-25; hOn filters read
|
||||
# inverted, 2026-09-27) are repaired once.
|
||||
from .helpers.catalog_heal import heal_catalog_triggers
|
||||
|
||||
if (healed_data := heal_catalog_triggers(hass, entry.data)) is not None:
|
||||
_LOGGER.info("Repaired catalog trigger(s) of %s (AC filter runtime now counts on the HVAC mode)", entry.title)
|
||||
_LOGGER.info("Repaired catalog trigger(s) of %s (see helpers/catalog_heal.py)", entry.title)
|
||||
hass.config_entries.async_update_entry(entry, data=healed_data)
|
||||
|
||||
# 2.95: tasks created before the fingerprint get their origin once,
|
||||
# where it is certain (catalog duty by name + entity, template task
|
||||
# by name) — a later rename no longer hides them.
|
||||
from .helpers.task_origin import backfill_origins
|
||||
|
||||
if (origin_data := backfill_origins(hass, entry.data)) is not None:
|
||||
hass.config_entries.async_update_entry(entry, data=origin_data)
|
||||
|
||||
# Every write path validates spare parts, but ~27 readers assume a dict
|
||||
# with an "id" — a hand-edited / damaged record crashed the sensor
|
||||
# platform and the buy-task sync at setup (found 2026-09-26). Drop
|
||||
|
||||
Reference in New Issue
Block a user