mirror of
https://github.com/no2chem/wideq.git
synced 2025-05-19 00:30:10 -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:
parent
78b48f0831
commit
e063259394
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user