Fix creating cloud hook twice for mobile_app (#106945)

This commit is contained in:
Robert Resch 2024-01-03 12:29:05 +01:00 committed by GitHub
parent be6ceb020e
commit c90f6f2fea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
await create_cloud_hook()
if (
CONF_CLOUDHOOK_URL not in registration
CONF_CLOUDHOOK_URL not in entry.data
and cloud.async_active_subscription(hass)
and cloud.async_is_connected(hass)
):