Skip to content

Commit

Permalink
🛠️ improve for local only mode (#2115)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Dec 24, 2024
1 parent c90d570 commit 2db0d38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/xiaomi_miot/core/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,14 +710,14 @@ async def async_write(self, payload: dict):
def use_local(self):
if self.cloud_only:
return False
if not self.local:
return False
if self.local_only:
return True
if self.miio2miot:
return True
if self.custom_config_bool('miot_local'):
return True
if not self.local:
return False
if self.model in MIOT_LOCAL_MODELS:
return True
return False
Expand Down

0 comments on commit 2db0d38

Please sign in to comment.