diff --git a/custom_components/leafspy/binary_sensor.py b/custom_components/leafspy/binary_sensor.py index 9ef6de8..52b6af8 100644 --- a/custom_components/leafspy/binary_sensor.py +++ b/custom_components/leafspy/binary_sensor.py @@ -31,7 +31,7 @@ class LeafSpyBinarySensorDescription(BinarySensorEntityDescription): translation_key="power_switch_state", device_class=BinarySensorDeviceClass.POWER, value_fn=lambda data: data.get("PwrSw"), - transform_fn=lambda x: x == 1, + transform_fn=lambda x: x == '1', icon="mdi:power", ) ]