Skip to content

Commit e60c85e

Browse files
committed
comments
1 parent ef2f4a8 commit e60c85e

File tree

1 file changed

+2
-2
lines changed
  • custom_components/unifi_access

1 file changed

+2
-2
lines changed

custom_components/unifi_access/hub.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def _handle_config_update(self, update, device_type):
444444
case "UGT":
445445
return self._handle_UGT_config_update(update, device_type)
446446

447-
def on_message(self, ws: websocket.WebSocketApp, message):
447+
def on_message(self, ws: websocket.WebSocketApp, message): # noqa: C901
448448
"""Handle messages received on the websocket client.
449449
450450
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):
510510
if door.name == door_name
511511
),
512512
None,
513-
) # FIXME this is likely unreliable. API does not seem to provide door id forthis access.remote_view
513+
) # FIXME this is likely unreliable. API does not seem to provide door id forthis access.remote_view # pylint: disable=fixme
514514
if existing_door is not None:
515515
existing_door.doorbell_request_id = update["data"]["request_id"]
516516
event = "doorbell_press"

0 commit comments

Comments
 (0)