mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Motion Blinds fix OperationNotAllowed (#76712)
fix OperationNotAllowed homeassistant.config_entries.OperationNotAllowed
This commit is contained in:
parent
93a80d8fc3
commit
bcc0a92e2b
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user