mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
Fix multiple motion blinds gateways (#46622)
local variable multicast was undefined for a second or more gateway that was setup.
This commit is contained in:
parent
94131df5e0
commit
ddf1f88b65
@ -54,6 +54,7 @@ async def async_setup_entry(
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, stop_motion_multicast)
|
||||
|
||||
# Connect to motion gateway
|
||||
multicast = hass.data[DOMAIN][KEY_MULTICAST_LISTENER]
|
||||
connect_gateway_class = ConnectMotionGateway(hass, multicast)
|
||||
if not await connect_gateway_class.async_connect_gateway(host, key):
|
||||
raise ConfigEntryNotReady
|
||||
|
Loading…
x
Reference in New Issue
Block a user