diff --git a/custom_components/nest_protect/__init__.py b/custom_components/nest_protect/__init__.py index 280cd0b..031c824 100644 --- a/custom_components/nest_protect/__init__.py +++ b/custom_components/nest_protect/__init__.py @@ -190,8 +190,8 @@ async def _async_subscribe_for_data( if key.startswith("where."): bucket_value = Bucket(**bucket).value - for area in bucket_value["wheres"]: - entry_data.areas[area["where_id"]] = area["name"] + for area in bucket_value.wheres: + entry_data.areas[area.where_id] = area.name # Temperature Sensors if key.startswith("kryptonite."):