Skip to content

Commit

Permalink
馃敡 fix for call action (#1642)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Apr 30, 2024
1 parent ef89580 commit 1f2827c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/xiaomi_miot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1922,6 +1922,8 @@ def miot_action(self, siid, aiid, params=None, did=None, **kwargs):
mca = self.miot_cloud_action
if self.custom_config_bool('auto_cloud') and not self._local_state:
mca = self.xiaomi_cloud
elif not self.miot_device:
mca = self.xiaomi_cloud
try:
if m2m and self._miio2miot.has_setter(siid, aiid=aiid):
result = self._miio2miot.call_action(self.miot_device, siid, aiid, params)
Expand Down

0 comments on commit 1f2827c

Please sign in to comment.