From bf100d7797798852635dc5bff556d9d39d8870ec Mon Sep 17 00:00:00 2001 From: Brett Date: Sat, 3 Feb 2024 22:28:00 +0000 Subject: [PATCH] Fix charge_state_charge_enable_request --- custom_components/teslemetry/switch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/teslemetry/switch.py b/custom_components/teslemetry/switch.py index 7bdb3f6..bc59ece 100644 --- a/custom_components/teslemetry/switch.py +++ b/custom_components/teslemetry/switch.py @@ -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(