Skip to content

Commit 52544c6

Browse files
committed
Call recompute_capabilities when initializing binary sensors
1 parent 359450e commit 52544c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zha/application/platforms/binary_sensor/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def __init__(
7575
self._cluster_handler = cluster_handlers[0]
7676
super().__init__(cluster_handlers, endpoint, device, **kwargs)
7777
self._state: bool = self.is_on
78+
self.recompute_capabilities()
7879

7980
def on_add(self) -> None:
8081
"""Run when entity is added."""

0 commit comments

Comments
 (0)