mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-18 23:06:31 +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(
|
||||
context=call.context,
|
||||
entity_id=entity_id,
|
||||
policy=POLICY_CONTROL,
|
||||
permission=POLICY_CONTROL,
|
||||
)
|
||||
|
||||
if not user.permissions.check_entity(entity_id, POLICY_CONTROL):
|
||||
raise Unauthorized(
|
||||
context=call.context,
|
||||
entity_id=entity_id,
|
||||
policy=POLICY_CONTROL,
|
||||
permission=POLICY_CONTROL,
|
||||
)
|
||||
|
||||
# Do action on entity
|
||||
|
Loading…
x
Reference in New Issue
Block a user