mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-20 09:55:09 -04:00
Fix connection issues
This commit is contained in:
parent
00ac6912e2
commit
79a121263f
5 changed files with 11 additions and 6 deletions
|
@ -3,5 +3,6 @@ class Appliance:
|
|||
self._data = data
|
||||
|
||||
def get(self):
|
||||
self._data["connected"] = self._data["lastConnEvent.category"] == "CONNECTED"
|
||||
if self._data["lastConnEvent.category"] == "DISCONNECTED":
|
||||
self._data["machMode"] = "0"
|
||||
return self._data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue