Skip to content

Commit 1db4e29

Browse files
committed
Another minor switch fix
1 parent f00ebde commit 1db4e29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • custom_components/victron_mqtt

custom_components/victron_mqtt/hub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def __init__(
157157
device_info: DeviceInfo,
158158
) -> None:
159159
"""Initialize the switch."""
160-
self._attr_is_on = switch.value
160+
self._attr_is_on = switch.value == GenericOnOff.On
161161
super().__init__(device, switch, device_info, "switch")
162162

163163
def __repr__(self) -> str:

0 commit comments

Comments
 (0)