1
0
mirror of https://github.com/home-assistant/core.git synced 2026-02-14 23:28:42 +00:00

Fix group check

This commit is contained in:
jbouwh
2026-02-14 13:41:25 +00:00
parent bd1d6b747f
commit 3796be6e6c

View File

@@ -491,7 +491,7 @@ class MqttAttributesMixin(Entity):
def attributes_prepare_discovery_update(self, config: DiscoveryInfoType) -> None:
"""Handle updated discovery message."""
if self.group is not None and CONF_GROUP in config:
if hasattr(self, "group") and CONF_GROUP in config:
self.group.included_unique_ids = config[CONF_GROUP]
self._attributes_config = config
self._attributes_prepare_subscribe_topics()