Skip to content

Commit

Permalink
🧹 fix for roborock.vacuum.m1s (#1855)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Dec 3, 2024
1 parent 8f5c81c commit 707e396
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/xiaomi_miot/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ def start_clean_segment(self, segment, repeat=1, **kwargs):
if self.state == STATE_CLEANING:
self.pause()
time.sleep(1)
if self.model in ['roborock.vacuum.m1s']:
return self.send_miio_command('app_segment_clean', segments)
return self.send_miio_command('app_segment_clean', [{'segments': segments, 'repeat': repeat}])


Expand Down

0 comments on commit 707e396

Please sign in to comment.