1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-05-18 00:00: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

@ -48,9 +48,10 @@ class WasherDevice(Device):
# Abort if monitoring has not started yet.
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