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.
This commit is contained in:
starkillerOG
2021-06-24 17:03:19 +02:00
committed by GitHub
parent 3b8ece38b3
commit 69a04cf748

View File

@@ -74,7 +74,7 @@ class ConnectXiaomiGateway:
try: try:
self._gateway_device = gateway.Gateway(self._host, self._token) self._gateway_device = gateway.Gateway(self._host, self._token)
# get the gateway info # get the gateway info
self._gateway_device.info() self._gateway_info = self._gateway_device.info()
# get the connected sub devices # get the connected sub devices
if self._use_cloud or self._gateway_info.model == GATEWAY_MODEL_EU: if self._use_cloud or self._gateway_info.model == GATEWAY_MODEL_EU: