Remove sonarr reauth persistent notification (#41911)
This commit is contained in:
1 parent
c10fe4f723
commit
cbdd712b3d
2 files changed
-12
No files matched your search
@@ -6,7 +6,6 @@ from typing import Any, Dict
|
||||
|
||||
from sonarr import Sonarr, SonarrAccessRestricted, SonarrError
|
||||
|
||||
from homeassistant.components import persistent_notification
|
||||
from homeassistant.config_entries import SOURCE_REAUTH, ConfigEntry
|
||||
from homeassistant.const import (
|
||||
ATTR_NAME,
|
||||
@@ -123,13 +122,6 @@ def _async_start_reauth(hass: HomeAssistantType, entry: ConfigEntry):
|
||||
)
|
||||
_LOGGER.error("API Key is no longer valid. Please reauthenticate")
|
||||
|
||||
persistent_notification.async_create(
|
||||
hass,
|
||||
f"Sonarr integration for the Sonarr API hosted at {entry.entry_data[CONF_HOST]} needs to be re-authenticated. Please go to the integrations page to re-configure it.",
|
||||
"Sonarr re-authentication",
|
||||
"sonarr_reauth",
|
||||
)
|
||||
|
||||
|
||||
async def _async_update_listener(hass: HomeAssistantType, entry: ConfigEntry) -> None:
|
||||
"""Handle options update."""
|
||||
|
||||
Reference in new issue
Block a user