Read out connection

This commit is contained in:
Andre Basche 2023-03-05 18:46:51 +01:00
parent 1ef5f7a64d
commit 0f630e854e
5 changed files with 31 additions and 5 deletions

7
pyhon/appliances/wm.py Normal file
View 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