2023-03-05 23:16:51 +05:30
|
|
|
class Appliance:
|
|
|
|
def __init__(self, data):
|
|
|
|
self._data = data
|
|
|
|
|
|
|
|
def get(self):
|
2023-03-06 23:27:08 +05:30
|
|
|
if self._data["lastConnEvent.category"] == "DISCONNECTED":
|
|
|
|
self._data["machMode"] = "0"
|
2023-03-05 23:16:51 +05:30
|
|
|
return self._data
|