Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions custom_components/hacs/repairs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Comment thread
ludeeus marked this conversation as resolved.
Outdated
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},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK, this can only happen if the removed integration was from a custom repository.
I do not think the ID has any value here. Should we just say "Removed integration"?

)


Expand Down