From 056a6965ab6919bff7d28fe55bf2f0789e23c8ff Mon Sep 17 00:00:00 2001 From: cyr-ius Date: Sat, 30 Dec 2023 12:47:06 +0100 Subject: [PATCH] Fix switch charging state --- custom_components/audiconnect/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/audiconnect/switch.py b/custom_components/audiconnect/switch.py index 951b79ff..6749e747 100644 --- a/custom_components/audiconnect/switch.py +++ b/custom_components/audiconnect/switch.py @@ -28,7 +28,7 @@ icon="mdi:ev-station", key="charging_state", value_fn=lambda x: x != "off", - turn_mode="async_set_batterycharger", + turn_mode="async_set_battery_charger", translation_key="charging_state", ), AudiSwitchDescription(