Skip to content

Commit

Permalink
Update __init__.py (#40)
Browse files Browse the repository at this point in the history
Fixed the debug logging for Battery update event
  • Loading branch information
emkookmer authored Sep 4, 2022
1 parent 5855883 commit 99f4bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/battery_sim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def async_import_reading(self, event):
self._last_export_reading = 0.0

def updateBattery(self, import_amount, export_amount):
_LOGGER.debug("Battery update event (%s). Import: %s, Export: %s", self._name, round(import_amount,4), round,(export_amount,4))
_LOGGER.debug("Battery update event (%s). Import: %s, Export: %s", self._name, round(import_amount,4), round(export_amount,4))
if self._charge_state=='unknown': self._charge_state = 0.0

"""Calculate maximum possible discharge based on battery specifications and time since last discharge"""
Expand Down

0 comments on commit 99f4bf5

Please sign in to comment.