Skip to content

Commit

Permalink
Fix fallback subscriptions for old HA versions (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
wozz committed Jun 28, 2023
1 parent b4e6220 commit cfa2e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matter_server/server/device_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cfa2e1b

Please sign in to comment.