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:
parent
78b48f0831
commit
e063259394
@ -97,8 +97,9 @@ class DryerDevice(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 DryerStatus(self, res)
|
return DryerStatus(self, res)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user