Skip to content

Commit b6d1ccc

Browse files
fix: device_prop update
1 parent 0a08c97 commit b6d1ccc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

roborock/roborock_typing.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,12 +322,14 @@ class DeviceProp(RoborockBase):
322322
def update(self, device_prop: DeviceProp) -> None:
323323
if device_prop.status:
324324
self.status = device_prop.status
325-
if device_prop.dnd_timer:
326-
self.dnd_timer = device_prop.dnd_timer
327325
if device_prop.clean_summary:
328326
self.clean_summary = device_prop.clean_summary
329327
if device_prop.consumable:
330328
self.consumable = device_prop.consumable
329+
if device_prop.dnd_timer:
330+
self.dnd_timer = device_prop.dnd_timer
331+
if device_prop.valley_electricity_timer:
332+
self.valley_electricity_timer = device_prop.valley_electricity_timer
331333
if device_prop.last_clean_record:
332334
self.last_clean_record = device_prop.last_clean_record
333335
if device_prop.dock_summary:

0 commit comments

Comments
 (0)