Remove unneeded permissions check from subscribe entities (#68044)
This commit is contained in:
parent
03a155af83
commit
ea6da674df
1 changed files with 0 additions and 7 deletions
|
@ -278,13 +278,6 @@ def handle_subscribe_entities(
|
||||||
hass: HomeAssistant, connection: ActiveConnection, msg: dict[str, Any]
|
hass: HomeAssistant, connection: ActiveConnection, msg: dict[str, Any]
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Handle subscribe entities command."""
|
"""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", []))
|
entity_ids = set(msg.get("entity_ids", []))
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue