diff --git a/custom_components/hacs/base.py b/custom_components/hacs/base.py index c9b6a97af05..30921c881a6 100644 --- a/custom_components/hacs/base.py +++ b/custom_components/hacs/base.py @@ -6,7 +6,6 @@ from dataclasses import asdict, dataclass, field from datetime import timedelta import gzip -import logging import math import os import pathlib @@ -28,7 +27,7 @@ from homeassistant.components.persistent_notification import ( async_create as async_create_persistent_notification, ) -from homeassistant.config_entries import ConfigEntry, ConfigEntryState +from homeassistant.config_entries import ConfigEntry from homeassistant.const import EVENT_HOMEASSISTANT_FINAL_WRITE, Platform from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.dispatcher import async_dispatcher_send @@ -416,8 +415,6 @@ def disable_hacs(self, reason: HacsDisabledReason) -> None: reason == HacsDisabledReason.INVALID_TOKEN and self.configuration.config_type == ConfigurationType.CONFIG_ENTRY ): - self.configuration.config_entry.state = ConfigEntryState.SETUP_ERROR - self.configuration.config_entry.reason = "Authentication failed" self.hass.add_job(self.configuration.config_entry.async_start_reauth, self.hass) def enable_hacs(self) -> None: