diff --git a/homeassistant/components/config/auth.py b/homeassistant/components/config/auth.py index 9170b028482..c46ef78b0b2 100644 --- a/homeassistant/components/config/auth.py +++ b/homeassistant/components/config/auth.py @@ -150,6 +150,7 @@ def _user_info(user): "name": user.name, "is_owner": user.is_owner, "is_active": user.is_active, + "local_only": user.local_only, "system_generated": user.system_generated, "group_ids": [group.id for group in user.groups], "credentials": [{"type": c.auth_provider_type} for c in user.credentials], diff --git a/tests/components/config/test_auth.py b/tests/components/config/test_auth.py index 363910ffd72..7460de6a751 100644 --- a/tests/components/config/test_auth.py +++ b/tests/components/config/test_auth.py @@ -66,6 +66,7 @@ async def test_list(hass, hass_ws_client, hass_admin_user): "name": "Mock User", "is_owner": False, "is_active": True, + "local_only": False, "system_generated": False, "group_ids": [group.id for group in hass_admin_user.groups], "credentials": [{"type": "homeassistant"}], @@ -76,6 +77,7 @@ async def test_list(hass, hass_ws_client, hass_admin_user): "name": "Test Owner", "is_owner": True, "is_active": True, + "local_only": False, "system_generated": False, "group_ids": [group.id for group in owner.groups], "credentials": [{"type": "homeassistant"}], @@ -86,6 +88,7 @@ async def test_list(hass, hass_ws_client, hass_admin_user): "name": "Test Hass.io", "is_owner": False, "is_active": True, + "local_only": False, "system_generated": True, "group_ids": [], "credentials": [], @@ -96,6 +99,7 @@ async def test_list(hass, hass_ws_client, hass_admin_user): "name": "Inactive User", "is_owner": False, "is_active": False, + "local_only": False, "system_generated": False, "group_ids": [group.id for group in inactive.groups], "credentials": [],