mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-19 15:26:29 +00:00
Fixed argument name in the example. (#251)
This commit is contained in:
parent
9fe71d2dc0
commit
950ab7307d
@ -179,14 +179,14 @@ async def handle_entity_service(call):
|
|||||||
raise UnknownUser(
|
raise UnknownUser(
|
||||||
context=call.context,
|
context=call.context,
|
||||||
entity_id=entity_id,
|
entity_id=entity_id,
|
||||||
policy=POLICY_CONTROL,
|
permission=POLICY_CONTROL,
|
||||||
)
|
)
|
||||||
|
|
||||||
if not user.permissions.check_entity(entity_id, POLICY_CONTROL):
|
if not user.permissions.check_entity(entity_id, POLICY_CONTROL):
|
||||||
raise Unauthorized(
|
raise Unauthorized(
|
||||||
context=call.context,
|
context=call.context,
|
||||||
entity_id=entity_id,
|
entity_id=entity_id,
|
||||||
policy=POLICY_CONTROL,
|
permission=POLICY_CONTROL,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Do action on entity
|
# Do action on entity
|
||||||
|
Loading…
x
Reference in New Issue
Block a user