From ccb1b5e7117b12338b7d8b13cb7980b150e252b2 Mon Sep 17 00:00:00 2001 From: Frans Saris Date: Wed, 1 Nov 2023 07:10:54 +0100 Subject: [PATCH] Use correct method on coordinator to stop charge --- custom_components/zonneplan_one/button.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/zonneplan_one/button.py b/custom_components/zonneplan_one/button.py index ba1999d..9ed6c96 100644 --- a/custom_components/zonneplan_one/button.py +++ b/custom_components/zonneplan_one/button.py @@ -98,7 +98,7 @@ async def async_press(self) -> None: if (self._button_key == "start"): await self.coordinator.async_startCharge(self._connection_uuid) elif (self._button_key == "stop"): - await self.coordinator.async_startCharge(self._connection_uuid) + await self.coordinator.async_stopCharge(self._connection_uuid) else: _LOGGER.warning("Unknonw button action for %s", self._button_key)