From 3af39aa76a18e5a51d21c4ec810a1a0de1f7c4b2 Mon Sep 17 00:00:00 2001 From: zigpy-review-bot <286747149+zigpy-review-bot@users.noreply.github.com> Date: Thu, 9 Jul 2026 23:43:30 +0200 Subject: [PATCH] Fix `is_on` docstring wording on binary sensors The `BinarySensor.is_on` docstring described a "switch" rather than a binary sensor, which is confusing in logs/docs. Reworded to "binary sensor". Reported by Copilot on #821. --- zha/application/platforms/binary_sensor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zha/application/platforms/binary_sensor/__init__.py b/zha/application/platforms/binary_sensor/__init__.py index 738fec12c..12469f2e8 100644 --- a/zha/application/platforms/binary_sensor/__init__.py +++ b/zha/application/platforms/binary_sensor/__init__.py @@ -143,7 +143,7 @@ def info_object(self) -> BinarySensorEntityInfo: @property def is_on(self) -> bool: - """Return True if the switch is on based on the state machine.""" + """Return True if the binary sensor is on based on the state machine.""" raw_state = self._cluster.get(self._attribute_name) if raw_state is None: return False