From 4d939486a9ef9583b5ed45414ed4850adb4fe53f Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Tue, 4 May 2021 23:26:48 +0200 Subject: [PATCH] Fix updating owner user/auth (#50087) Check if `is_active` is in update msg --- homeassistant/components/config/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/config/auth.py b/homeassistant/components/config/auth.py index c1d43a5d4a9..54d992466f9 100644 --- a/homeassistant/components/config/auth.py +++ b/homeassistant/components/config/auth.py @@ -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"],