From ddf1f88b650b7a96293ab322be51657b98c444ce Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Wed, 17 Feb 2021 09:25:00 +0100 Subject: [PATCH] Fix multiple motion blinds gateways (#46622) local variable multicast was undefined for a second or more gateway that was setup. --- homeassistant/components/motion_blinds/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/motion_blinds/__init__.py b/homeassistant/components/motion_blinds/__init__.py index e10f1655d2f..5d02d5a14a8 100644 --- a/homeassistant/components/motion_blinds/__init__.py +++ b/homeassistant/components/motion_blinds/__init__.py @@ -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