Skip to content

Commit

Permalink
Fix charge_state_charge_enable_request
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Feb 3, 2024
1 parent 59a37d2 commit bf100d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/teslemetry/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class TeslemetrySwitchEntityDescription(SwitchEntityDescription):
DESCRIPTIONS: tuple[TeslemetrySwitchEntityDescription, ...] = (
TeslemetrySwitchEntityDescription(
key="charge_state_charge_enable_request",
on_func=lambda api: api.start_charging(),
off_func=lambda api: api.stop_charging(),
on_func=lambda api: api.charge_start(),
off_func=lambda api: api.charge_stop(),
scopes=[Scopes.VEHICLE_CMDS,Scopes.VEHICLE_CHARGING_CMDS],
),
TeslemetrySwitchEntityDescription(
Expand Down

0 comments on commit bf100d7

Please sign in to comment.