Skip to content

Commit

Permalink
fix charge_paused
Browse files Browse the repository at this point in the history
  • Loading branch information
dupondje committed Aug 16, 2024
1 parent 2da16a1 commit b7af844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/nrgkick/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class NRGKickSwitchEntityDescription(SwitchEntityDescription, NRGKickRequiredKey
NRGKickSwitchEntityDescription(
key="charge_pause",
device_class=SwitchDeviceClass.SWITCH,
value_fn=lambda data: data["control"]["charge_pause"] == 0,
value_fn=lambda data: data["control"]["charge_pause"] == 1,
switch_fn=lambda c, v: c.set("control", "charge_pause", v),
),
]
Expand Down

0 comments on commit b7af844

Please sign in to comment.