From 280619def6ca7afd8d8dbdad599955495f7d570b Mon Sep 17 00:00:00 2001 From: Sian Date: Mon, 28 Dec 2020 04:46:00 +1030 Subject: [PATCH] Support resume_or_start for vacuum's segment cleaning (#894) Added check if in segment cleaning and if so then resume segment clean --- miio/vacuum.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miio/vacuum.py b/miio/vacuum.py index 011586f72..e00bfae48 100644 --- a/miio/vacuum.py +++ b/miio/vacuum.py @@ -129,6 +129,8 @@ def resume_or_start(self): status = self.status() if status.in_zone_cleaning and (status.is_paused or status.got_error): return self.resume_zoned_clean() + if status.in_segment_cleaning and (status.is_paused or status.got_error): + return self.resume_segment_clean() return self.start()