mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +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
|
||||
|
||||
if user.is_owner and msg["is_active"] is False:
|
||||
if user.is_owner and msg.get("is_active") is False:
|
||||
connection.send_message(
|
||||
websocket_api.error_message(
|
||||
msg["id"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user