From cb14f9aa2a6fe51eb6581f24c50858e22ba405d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B8=D0=BA=D1=82=D0=BE=D1=80=D0=BE=D0=B2=20=D0=90?= =?UTF-8?q?=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=93=D0=B5=D1=80=D0=BC=D0=B0?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=B8=D1=87?= Date: Wed, 15 Dec 2021 16:08:06 +0300 Subject: [PATCH] remove port in hub.binary_sesnors check when processing inbound message from controller --- custom_components/mega/http.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/mega/http.py b/custom_components/mega/http.py index 1e23ba7..af792a2 100644 --- a/custom_components/mega/http.py +++ b/custom_components/mega/http.py @@ -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)