Polling device type is configurable now.
This commit is contained in:
@@ -231,7 +231,6 @@ class XiaomiDevice():
|
||||
self._sid = device['sid']
|
||||
self._name = '{}_{}'.format(name, self._sid)
|
||||
self.parse_data(device['data'])
|
||||
self._last_event_id = -1
|
||||
|
||||
self.xiaomi_hub = xiaomi_hub
|
||||
xiaomi_hub.XIAOMI_HA_DEVICES[self._sid].append(self)
|
||||
@@ -249,6 +248,4 @@ class XiaomiDevice():
|
||||
return True
|
||||
|
||||
def parse_data(self, data):
|
||||
print(data)
|
||||
# self._last_event_id = data
|
||||
return True
|
||||
Reference in New Issue
Block a user