Skip to content

Commit

Permalink
Fixing TypeError: 'WhereBucketValue' object is not subscriptable #401
Browse files Browse the repository at this point in the history
This should handle the error, as it is already handled a few lines above the same way.
  • Loading branch information
GSzabados authored Feb 17, 2025
1 parent 45f8aef commit 8d352ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/nest_protect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."):
Expand Down

0 comments on commit 8d352ab

Please sign in to comment.