Skip to content

Commit

Permalink
⚒️️ improve for miio2miot (#2265)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Jan 2, 2025
1 parent a65ec32 commit 658a47f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miot/core/miio2miot.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_miio_props(self, device):
pms = c.get('params', [])
try:
vls = device.send(c['method'], pms)
except (DeviceException, OSError) as exc:
except (DeviceException, OSError, TypeError, UnboundLocalError) as exc:
if is_offline_exception(exc):
raise exc
if not c.get('ignore_error'):
Expand Down

0 comments on commit 658a47f

Please sign in to comment.