From cfa2e1b7c239e776fe360f07bdf697aff56b2664 Mon Sep 17 00:00:00 2001 From: wozz Date: Wed, 28 Jun 2023 11:02:32 -0400 Subject: [PATCH] Fix fallback subscriptions for old HA versions (#343) --- matter_server/server/device_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matter_server/server/device_controller.py b/matter_server/server/device_controller.py index fb612462..852565e6 100644 --- a/matter_server/server/device_controller.py +++ b/matter_server/server/device_controller.py @@ -520,7 +520,7 @@ async def _subscribe_node(self, node_id: int) -> None: # individual subscriptions (e.g. bridges) attr_subscriptions = "*" # type: ignore[assignment] - if node.attribute_subscriptions == []: + if not node.attribute_subscriptions: # temp fix for backwards compatbility with HA releases below 2023.7 # fallback to wildcard subscriptions if we have no explicit # node subscriptions defined.