Fix SimplePush repairs issue (#75922)
parent
176d44190e
commit
d7827d9902
|
@ -43,6 +43,7 @@ async def async_get_service(
|
||||||
discovery_info: DiscoveryInfoType | None = None,
|
discovery_info: DiscoveryInfoType | None = None,
|
||||||
) -> SimplePushNotificationService | None:
|
) -> SimplePushNotificationService | None:
|
||||||
"""Get the Simplepush notification service."""
|
"""Get the Simplepush notification service."""
|
||||||
|
if discovery_info is None:
|
||||||
async_create_issue(
|
async_create_issue(
|
||||||
hass,
|
hass,
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
|
@ -52,8 +53,6 @@ async def async_get_service(
|
||||||
severity=IssueSeverity.WARNING,
|
severity=IssueSeverity.WARNING,
|
||||||
translation_key="deprecated_yaml",
|
translation_key="deprecated_yaml",
|
||||||
)
|
)
|
||||||
|
|
||||||
if discovery_info is None:
|
|
||||||
hass.async_create_task(
|
hass.async_create_task(
|
||||||
hass.config_entries.flow.async_init(
|
hass.config_entries.flow.async_init(
|
||||||
DOMAIN, context={"source": SOURCE_IMPORT}, data=config
|
DOMAIN, context={"source": SOURCE_IMPORT}, data=config
|
||||||
|
|
Loading…
Reference in New Issue