mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-06-01 15:28:23 -04:00
Read out connection
This commit is contained in:
parent
1ef5f7a64d
commit
0f630e854e
5 changed files with 31 additions and 5 deletions
7
pyhon/appliances/wm.py
Normal file
7
pyhon/appliances/wm.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
class Appliance:
|
||||
def __init__(self, data):
|
||||
self._data = data
|
||||
|
||||
def get(self):
|
||||
self._data["connected"] = self._data["lastConnEvent.category"] == "CONNECTED"
|
||||
return self._data
|
Loading…
Add table
Add a link
Reference in a new issue