mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Fix repair when integration does not exist (#127050)
This commit is contained in:
parent
b42848fd7a
commit
62629a0b34
@ -42,8 +42,8 @@ async def async_create_fix_flow(
|
|||||||
hass: HomeAssistant, issue_id: str, data: dict
|
hass: HomeAssistant, issue_id: str, data: dict
|
||||||
) -> RepairsFlow:
|
) -> RepairsFlow:
|
||||||
"""Create flow."""
|
"""Create flow."""
|
||||||
if issue_id.startswith("deprecate_sensor_"):
|
if issue_id.startswith("deprecate_sensor_") and (
|
||||||
entry = hass.config_entries.async_get_entry(data["entry_id"])
|
entry := hass.config_entries.async_get_entry(data["entry_id"])
|
||||||
assert entry
|
):
|
||||||
return SensorDeprecationRepairFlow(entry)
|
return SensorDeprecationRepairFlow(entry)
|
||||||
return ConfirmRepairFlow()
|
return ConfirmRepairFlow()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user