From f28c66ce1928bee2bdf51eae49f3c4bf4096aac0 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Wed, 29 Dec 2021 17:54:53 +0100 Subject: [PATCH] Fix Hue motion sensor state if sensor is disabled (#63000) --- homeassistant/components/hue/v2/binary_sensor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/hue/v2/binary_sensor.py b/homeassistant/components/hue/v2/binary_sensor.py index 55ec6a41549..47617b45af6 100644 --- a/homeassistant/components/hue/v2/binary_sensor.py +++ b/homeassistant/components/hue/v2/binary_sensor.py @@ -84,6 +84,9 @@ class HueMotionSensor(HueBinarySensorBase): @property def is_on(self) -> bool | None: """Return true if the binary sensor is on.""" + if not self.resource.enabled: + # Force None (unknown) if the sensor is set to disabled in Hue + return None return self.resource.motion.motion @property