Fix updating owner user/auth (#50087)

Check if `is_active` is in update msg
This commit is contained in:
Bram Kragten 2021-05-04 23:26:48 +02:00 committed by GitHub
parent 2273bda44a
commit 4d939486a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"],