Skip to content

Commit

Permalink
Use correct method on coordinator to stop charge
Browse files Browse the repository at this point in the history
  • Loading branch information
fsaris authored Nov 1, 2023
1 parent 2518ee1 commit ccb1b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/zonneplan_one/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit ccb1b5e

Please sign in to comment.