From 4a12184516ad8dc5034ec8be0e65ced3098213ec Mon Sep 17 00:00:00 2001 From: Scott Ellis Date: Mon, 9 Sep 2024 15:50:49 -0700 Subject: [PATCH] Maybe fix errors in _async_subscribe_for_data #347 --- custom_components/nest_protect/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/nest_protect/__init__.py b/custom_components/nest_protect/__init__.py index 49cf68b..88ed9f8 100644 --- a/custom_components/nest_protect/__init__.py +++ b/custom_components/nest_protect/__init__.py @@ -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