Skip to content

Commit

Permalink
Fix cool index (#107)
Browse files Browse the repository at this point in the history
* Fix cool index

* Fix _calc_energy_account

---------

Co-authored-by: fustom <fustom@gmail.com>
  • Loading branch information
domenicoblanco and fustom authored Sep 13, 2023
1 parent 3edad68 commit f2a5d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ariston/galevo_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ def _calc_energy_account(self) -> dict[str, Any]:
elif sequence['k'] == ConsumptionType.CENTRAL_HEATING_TOTAL_ENERGY.value:
calculated_heating_energy = sum(sequence['v'])

return {'LastMonth': [{'elect': calculated_heating_energy},{'cool': calculated_cooling_energy}] }
return {'LastMonth': [{'elect': calculated_heating_energy,'cool': calculated_cooling_energy}] }

def update_energy(self) -> None:
"""Update the device energy settings from the cloud"""
Expand Down

0 comments on commit f2a5d7e

Please sign in to comment.