Skip to content

Commit

Permalink
Merge pull request #143 from CharlesGillanders/hot-fix
Browse files Browse the repository at this point in the history
Fix updateDisChargeConfigInfo not working
  • Loading branch information
Poshy163 authored Nov 4, 2024
2 parents 84471ed + f4c0faf commit 4efcaa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions custom_components/alphaess/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def reset_config(self, serial):

return_charge_data = await self.api.updateChargeConfigInfo(serial, batHighCap, 1, "00:00", "00:00",
"00:00", "00:00")
return_discharge_data = await self.api.updateDisChargeConfigInfo(serial, batUseCap, 0, "00:00", "00:00",
return_discharge_data = await self.api.updateDisChargeConfigInfo(serial, batUseCap, 1, "00:00", "00:00",
"00:00", "00:00")

_LOGGER.info(
Expand All @@ -90,7 +90,7 @@ async def update_discharge(self, name, serial, time_period):
start_time = datetime.strptime(start_time_str, "%H:%M").replace(year=now.year, month=now.month, day=now.day)
future_time = start_time + timedelta(minutes=time_period)
future_time_str = future_time.strftime("%H:%M")
return_data = await self.api.updateDisChargeConfigInfo(serial, batUseCap, 0, future_time_str, "00:00",
return_data = await self.api.updateDisChargeConfigInfo(serial, batUseCap, 1, future_time_str, "00:00",
start_time.strftime("%H:%M"), "00:00")
_LOGGER.info(
f"Retrieved value for Discharge: {batUseCap} for serial: {serial} Running for {start_time.strftime('%H:%M')} to {future_time_str}")
Expand Down
2 changes: 1 addition & 1 deletion custom_components/alphaess/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"requirements": [
"alphaessopenapi==0.0.11"
],
"version": "0.5.6"
"version": "0.5.6.1"
}


0 comments on commit 4efcaa0

Please sign in to comment.