mirror of
https://github.com/home-assistant/core.git
synced 2025-05-01 04:37:52 +00:00
Fix updating owner user/auth (#50087)
Check if `is_active` is in update msg
This commit is contained in:
parent
2273bda44a
commit
4d939486a9
@ -112,7 +112,7 @@ async def websocket_update(hass, connection, msg):
|
|||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
if user.is_owner and msg["is_active"] is False:
|
if user.is_owner and msg.get("is_active") is False:
|
||||||
connection.send_message(
|
connection.send_message(
|
||||||
websocket_api.error_message(
|
websocket_api.error_message(
|
||||||
msg["id"],
|
msg["id"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user