Skip to content

Commit

Permalink
Maybe fix errors in _async_subscribe_for_data #347 (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottESanDiego authored Sep 29, 2024
1 parent d3740b0 commit bc233ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/nest_protect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ async def _async_subscribe_for_data(

LOGGER.debug(buckets)

objects = [
dict(b, **buckets.get(b.object_key, {})) for b in [data.updated_buckets]
]
objects: list[Bucket] = []
for b in data.updated_buckets:
objects.append(b)

data.updated_buckets = objects

Expand Down

0 comments on commit bc233ef

Please sign in to comment.