mirror of
https://github.com/no2chem/wideq.git
synced 2025-05-18 08:10:17 -07:00
Update Washer to support Binary
Similar to Dryer update washer to support binary and json
This commit is contained in:
parent
e063259394
commit
4acde696e9
@ -49,8 +49,9 @@ class WasherDevice(Device):
|
||||
if not hasattr(self, 'mon'):
|
||||
return None
|
||||
|
||||
res = self.mon.poll_json()
|
||||
if res:
|
||||
data = self.mon.poll()
|
||||
if data:
|
||||
res = self.model.decode_monitor(data)
|
||||
return WasherStatus(self, res)
|
||||
else:
|
||||
return None
|
||||
|
Loading…
x
Reference in New Issue
Block a user