From e60c85e28d3c6cad56a0dd57a74f5a4854bc276b Mon Sep 17 00:00:00 2001 From: imhotep Date: Wed, 28 Aug 2024 18:32:08 -0700 Subject: [PATCH] comments --- custom_components/unifi_access/hub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/unifi_access/hub.py b/custom_components/unifi_access/hub.py index 94dfc78..75508fe 100644 --- a/custom_components/unifi_access/hub.py +++ b/custom_components/unifi_access/hub.py @@ -444,7 +444,7 @@ def _handle_config_update(self, update, device_type): case "UGT": return self._handle_UGT_config_update(update, device_type) - def on_message(self, ws: websocket.WebSocketApp, message): + def on_message(self, ws: websocket.WebSocketApp, message): # noqa: C901 """Handle messages received on the websocket client. Doorbell presses are relying on door names so if those are not unique, it may cause some issues @@ -510,7 +510,7 @@ def on_message(self, ws: websocket.WebSocketApp, message): if door.name == door_name ), None, - ) # FIXME this is likely unreliable. API does not seem to provide door id forthis access.remote_view + ) # FIXME this is likely unreliable. API does not seem to provide door id forthis access.remote_view # pylint: disable=fixme if existing_door is not None: existing_door.doorbell_request_id = update["data"]["request_id"] event = "doorbell_press"