From 4a44a1abe4431f1b58b5583f4ac39f7bbf75a58e Mon Sep 17 00:00:00 2001 From: Mick Vleeshouwer Date: Sat, 15 Jun 2024 21:36:30 +0000 Subject: [PATCH] Bugfix --- custom_components/nest_protect/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/nest_protect/config_flow.py b/custom_components/nest_protect/config_flow.py index 623b5c6..7074548 100644 --- a/custom_components/nest_protect/config_flow.py +++ b/custom_components/nest_protect/config_flow.py @@ -55,7 +55,7 @@ async def async_validate_input(self, user_input: dict[str, Any]) -> list: data = await client.get_first_data(nest.access_token, nest.userid) email = "" - for bucket in data["updated_buckets"]: + for bucket in data.updated_buckets: key = bucket["object_key"] if key.startswith("user."): email = bucket["value"]["email"]