1
0
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:
stboch 2019-08-23 16:42:35 -04:00 committed by GitHub
parent e063259394
commit 4acde696e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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