mirror of
https://github.com/home-assistant/core.git
synced 2025-07-07 13:27:09 +00:00
Remove unneeded permissions check from subscribe entities (#68044)
This commit is contained in:
parent
03a155af83
commit
ea6da674df
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user