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:
parent
3b8ece38b3
commit
69a04cf748
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue