Skip to content

Commit

Permalink
Moved switch reset to eco start routine
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanmarlor committed Oct 31, 2022
1 parent 1c9386c commit 0c64c9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/foxess_em/charge/charge_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ async def _eco_start(self, *args) -> None: # pylint: disable=unused-argument
f"Allowing battery to continue discharge until {self._perc_target}"
)

_LOGGER.debug("Resetting switches")
self._battery_controller.set_boost(False)
self._battery_controller.set_full(False)

async def _stop_force_charge(
self, *args
) -> None: # pylint: disable=unused-argument
Expand All @@ -130,7 +134,3 @@ async def _eco_end(self, *args) -> None: # pylint: disable=unused-argument

_LOGGER.debug("Releasing SoC hold")
await self._fox.set_min_soc(self._original_soc * 100)

_LOGGER.debug("Resetting switches")
self._battery_controller.set_boost(False)
self._battery_controller.set_full(False)

0 comments on commit 0c64c9f

Please sign in to comment.