diff --git a/custom_components/unifi_access/event.py b/custom_components/unifi_access/event.py index d5a82b8..3b77a32 100644 --- a/custom_components/unifi_access/event.py +++ b/custom_components/unifi_access/event.py @@ -50,7 +50,6 @@ class AccessEventEntity(EventEntity): def __init__(self, hass: HomeAssistant, door) -> None: """Initialize Unifi Access Door Lock.""" self.hass = hass - self.id = door.id self.door: UnifiAccessDoor = door self._attr_unique_id = f"{self.door.id}_access" self._attr_name = f"{self.door.name} Access" diff --git a/custom_components/unifi_access/hub.py b/custom_components/unifi_access/hub.py index 612c713..c9afa02 100644 --- a/custom_components/unifi_access/hub.py +++ b/custom_components/unifi_access/hub.py @@ -195,7 +195,6 @@ def on_message(self, ws: websocket.WebSocketApp, message): """ event = None event_attributes = None - # _LOGGER.info(f"Got update {message}") if "Hello" not in message: update = json.loads(message) existing_door = None @@ -207,9 +206,10 @@ def on_message(self, ws: websocket.WebSocketApp, message): existing_door = self.doors[door_id] existing_door.door_position_status = update["data"]["status"] _LOGGER.info( - "DPS Change of door %s with ID %s Updated", + "DPS Change for existing door %s with ID %s status: %s", existing_door.name, door_id, + update["data"]["status"], ) case "access.data.device.remote_unlock": door_id = update["data"]["unique_id"]