Skip to content

Commit

Permalink
Fix repair when integration does not exist (#127050)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaiu authored and frenck committed Sep 30, 2024
1 parent b42848f commit 62629a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions homeassistant/components/seventeentrack/repairs.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ async def async_create_fix_flow(
hass: HomeAssistant, issue_id: str, data: dict
) -> RepairsFlow:
"""Create flow."""
if issue_id.startswith("deprecate_sensor_"):
entry = hass.config_entries.async_get_entry(data["entry_id"])
assert entry
if issue_id.startswith("deprecate_sensor_") and (
entry := hass.config_entries.async_get_entry(data["entry_id"])
):
return SensorDeprecationRepairFlow(entry)
return ConfirmRepairFlow()

0 comments on commit 62629a0

Please sign in to comment.