Skip to content

Commit 4d4732d

Browse files
committed
Only skip if unsupported
1 parent 2be434b commit 4d4732d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

zha/application/platforms/switch.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,6 @@ def _is_supported(self) -> bool:
140140
if (
141141
self._attribute_name
142142
in self._on_off_cluster_handler.cluster.unsupported_attributes
143-
or self._attribute_name
144-
not in self._on_off_cluster_handler.cluster.attributes_by_name
145-
or self._on_off_cluster_handler.cluster.get(self._attribute_name) is None
146143
):
147144
_LOGGER.debug(
148145
"%s is not supported - skipping %s entity creation",

0 commit comments

Comments
 (0)