1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-05-19 08:40:25 -07:00

Fix Dryer JSON vs Binary Status

My model LG dryer uses json, moved code back to decode_monitor which supports json and binary
This commit is contained in:
stboch 2019-08-23 16:40:58 -04:00 committed by GitHub
parent 78b48f0831
commit e063259394
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,9 +96,10 @@ class DryerDevice(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 DryerStatus(self, res)
else:
return None