mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-21 19:09:04 +00:00
Handle get users API returning None (#4628)
* Handle get users API returning None * Skip throttle during test
This commit is contained in:
@@ -491,11 +491,13 @@ class HomeAssistant(FileConfiguration, CoreSysAttributes):
|
||||
{ATTR_TYPE: "config/auth/list"}
|
||||
)
|
||||
|
||||
return [
|
||||
IngressSessionDataUser(
|
||||
id=data["id"],
|
||||
username=data.get("username"),
|
||||
display_name=data.get("name"),
|
||||
)
|
||||
for data in list_of_users
|
||||
]
|
||||
if list_of_users:
|
||||
return [
|
||||
IngressSessionDataUser(
|
||||
id=data["id"],
|
||||
username=data.get("username"),
|
||||
display_name=data.get("name"),
|
||||
)
|
||||
for data in list_of_users
|
||||
]
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user