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'):
|
if not hasattr(self, 'mon'):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
res = self.mon.poll_json()
|
data = self.mon.poll()
|
||||||
if res:
|
if data:
|
||||||
|
res = self.model.decode_monitor(data)
|
||||||
return WasherStatus(self, res)
|
return WasherStatus(self, res)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user