From ea6da674df97758e31b1f77a64a183b9f91016e0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 12 Mar 2022 11:30:27 -1000 Subject: [PATCH] Remove unneeded permissions check from subscribe entities (#68044) --- homeassistant/components/websocket_api/commands.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/homeassistant/components/websocket_api/commands.py b/homeassistant/components/websocket_api/commands.py index e64ba46beb7..02121845ad6 100644 --- a/homeassistant/components/websocket_api/commands.py +++ b/homeassistant/components/websocket_api/commands.py @@ -278,13 +278,6 @@ def handle_subscribe_entities( hass: HomeAssistant, connection: ActiveConnection, msg: dict[str, Any] ) -> None: """Handle subscribe entities command.""" - # Circular dep - # pylint: disable=import-outside-toplevel - from .permissions import SUBSCRIBE_ALLOWLIST - - if "state_changed" not in SUBSCRIBE_ALLOWLIST and not connection.user.is_admin: - raise Unauthorized - entity_ids = set(msg.get("entity_ids", [])) @callback