Skip to content

Commit

Permalink
馃敡 bump python-miio to v0.5.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Apr 8, 2021
1 parent c6b45be commit cb86416
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/xiaomi_miot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,8 @@ def __init__(self, miot_service=None, device=None, **kwargs):
token = self._config.get(CONF_TOKEN) or None
_LOGGER.info('Initializing with host %s (%s), miot mapping: %s', host, name, self._miot_mapping)
try:
device = MiotDevice(ip=host, token=token, mapping=self._miot_mapping)
device = MiotDevice(ip=host, token=token)
device.mapping = self._miot_mapping
except ValueError as exc:
_LOGGER.warning('Initializing with host %s (%s) failed: %s', host, name, exc)

Expand Down

0 comments on commit cb86416

Please sign in to comment.