Skip to content

Commit

Permalink
Fix IKEA Starkvind attribute reports (#125)
Browse files Browse the repository at this point in the history
* Fix infinite recursion for IKEA Starkvind attribute update

* Emit event for all updated attributes
  • Loading branch information
TheJulianJES authored Aug 4, 2024
1 parent 248faf3 commit 4258c27
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions zha/zigbee/cluster_handlers/manufacturerspecific.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,15 +422,6 @@ async def async_update(self) -> None:
"""Retrieve latest state."""
await self.get_attribute_value("fan_mode", from_cache=False)

def attribute_updated(self, attrid: int, value: Any, _: Any) -> None:
"""Handle attribute update from fan cluster."""
attr_name = self._get_attribute_name(attrid)
self.debug(
"Attribute report '%s'[%s] = %s", self.cluster.name, attr_name, value
)
if attr_name == "fan_mode":
self.attribute_updated(attrid, attr_name, value)


@registries.CLUSTER_HANDLER_ONLY_CLUSTERS.register(IKEA_REMOTE_CLUSTER)
@registries.CLUSTER_HANDLER_REGISTRY.register(IKEA_REMOTE_CLUSTER)
Expand Down

0 comments on commit 4258c27

Please sign in to comment.