Remove unneeded boolean conversion from senseme (#63783)

This commit is contained in:
Franck Nijhof
2022-01-10 20:12:57 +01:00
committed by GitHub
parent 56c577c832
commit 003a1e87a7

View File

@@ -38,4 +38,4 @@ class HASensemeOccupancySensor(SensemeEntity, BinarySensorEntity):
@callback @callback
def _async_update_attrs(self) -> None: def _async_update_attrs(self) -> None:
"""Update attrs from device.""" """Update attrs from device."""
self._attr_is_on = bool(self._device.motion_detected) self._attr_is_on = self._device.motion_detected