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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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