Remove sonarr reauth persistent notification (#41911)

This commit is contained in:
Chris Talkington 2020-10-15 18:19:22 -05:00 committed by GitHub
parent c10fe4f723
commit cbdd712b3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 12 deletions

View File

@ -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."""

View File

@ -5,7 +5,6 @@ from typing import Any, Dict, Optional
from sonarr import Sonarr, SonarrAccessRestricted, SonarrError
import voluptuous as vol
from homeassistant.components import persistent_notification
from homeassistant.config_entries import CONN_CLASS_LOCAL_POLL, ConfigFlow, OptionsFlow
from homeassistant.const import (
CONF_API_KEY,
@ -102,9 +101,6 @@ class SonarrConfigFlow(ConfigFlow, domain=DOMAIN):
errors={},
)
assert self.hass
persistent_notification.async_dismiss(self.hass, "sonarr_reauth")
return await self.async_step_user()
async def async_step_user(