From 69a04cf748bc6dd8b37d5dd1ecaa6471caed72a3 Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Thu, 24 Jun 2021 17:03:19 +0200 Subject: [PATCH] Fix Xiaomi Miio missing gateway info (#52146) During my last PR: https://github.com/home-assistant/core/pull/47955, I accedently created a bug that will block the setup of the gateway integration. This fixes that bug. --- homeassistant/components/xiaomi_miio/gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/xiaomi_miio/gateway.py b/homeassistant/components/xiaomi_miio/gateway.py index 7482dae5d77..7dd84cf7812 100644 --- a/homeassistant/components/xiaomi_miio/gateway.py +++ b/homeassistant/components/xiaomi_miio/gateway.py @@ -74,7 +74,7 @@ class ConnectXiaomiGateway: try: self._gateway_device = gateway.Gateway(self._host, self._token) # get the gateway info - self._gateway_device.info() + self._gateway_info = self._gateway_device.info() # get the connected sub devices if self._use_cloud or self._gateway_info.model == GATEWAY_MODEL_EU: