Motion Blinds fix OperationNotAllowed (#76712)

fix OperationNotAllowed

homeassistant.config_entries.OperationNotAllowed
This commit is contained in:
starkillerOG
2022-08-13 14:39:04 +02:00
committed by GitHub
parent 93a80d8fc3
commit bcc0a92e2b

View File

@@ -121,8 +121,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
multicast_interface = entry.data.get(CONF_INTERFACE, DEFAULT_INTERFACE)
wait_for_push = entry.options.get(CONF_WAIT_FOR_PUSH, DEFAULT_WAIT_FOR_PUSH)
entry.async_on_unload(entry.add_update_listener(update_listener))
# Create multicast Listener
async with setup_lock:
if KEY_MULTICAST_LISTENER not in hass.data[DOMAIN]:
@@ -213,6 +211,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
entry.async_on_unload(entry.add_update_listener(update_listener))
return True