Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
imhotep committed Aug 29, 2024
1 parent ef2f4a8 commit e60c85e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/unifi_access/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit e60c85e

Please sign in to comment.