remove port in hub.binary_sesnors check when processing inbound message from controller

This commit is contained in:
Викторов Андрей Германович
2021-12-15 16:08:06 +03:00
parent b908068315
commit cb14f9aa2a

View File

@@ -134,7 +134,8 @@ class MegaView(HomeAssistantView):
if ret == 'd' and act:
await hub.request(cmd=act.replace(':3', f':{v}'))
ret = 'd' if hub.force_d else ''
elif port in hub.binary_sensors:
else:
# elif port in hub.binary_sensors:
hub.values[port] = data
for cb in self.callbacks[hub.id][port]:
cb(data)