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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: