From 003a1e87a7661fb9f8994103a269464ab79e1909 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 10 Jan 2022 20:12:57 +0100 Subject: [PATCH] Remove unneeded boolean conversion from senseme (#63783) --- homeassistant/components/senseme/binary_sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/senseme/binary_sensor.py b/homeassistant/components/senseme/binary_sensor.py index 14c2a327d07..d6c9e193ece 100644 --- a/homeassistant/components/senseme/binary_sensor.py +++ b/homeassistant/components/senseme/binary_sensor.py @@ -38,4 +38,4 @@ class HASensemeOccupancySensor(SensemeEntity, BinarySensorEntity): @callback def _async_update_attrs(self) -> None: """Update attrs from device.""" - self._attr_is_on = bool(self._device.motion_detected) + self._attr_is_on = self._device.motion_detected