1 parent f00ebde commit 1db4e29Copy full SHA for 1db4e29
1 file changed
custom_components/victron_mqtt/hub.py
@@ -157,7 +157,7 @@ def __init__(
157
device_info: DeviceInfo,
158
) -> None:
159
"""Initialize the switch."""
160
- self._attr_is_on = switch.value
+ self._attr_is_on = switch.value == GenericOnOff.On
161
super().__init__(device, switch, device_info, "switch")
162
163
def __repr__(self) -> str:
0 commit comments