diff --git a/custom_components/hacs/repairs.py b/custom_components/hacs/repairs.py index 0b9ecb8f8a6..d952e95c2f9 100644 --- a/custom_components/hacs/repairs.py +++ b/custom_components/hacs/repairs.py @@ -36,12 +36,13 @@ async def async_step_confirm_restart( return self.async_create_entry(title="", data={}) hacs: HacsBase = self.hass.data[DOMAIN] - integration = hacs.repositories.get_by_id(self.issue_id.split("_")[2]) + integration_id = self.issue_id.split("_")[2] + integration = hacs.repositories.get_by_id(integration_id) return self.async_show_form( step_id="confirm_restart", data_schema=vol.Schema({}), - description_placeholders={"name": integration.display_name}, + description_placeholders={"name": integration.display_name if integration is not None else integration_id}, )