From 99f4bf50a964a5e0ae7645afedea4144787a0b07 Mon Sep 17 00:00:00 2001 From: emkookmer Date: Sun, 4 Sep 2022 20:34:58 +0200 Subject: [PATCH] Update __init__.py (#40) Fixed the debug logging for Battery update event --- custom_components/battery_sim/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/battery_sim/__init__.py b/custom_components/battery_sim/__init__.py index d5bd4a8..77cb4c3 100644 --- a/custom_components/battery_sim/__init__.py +++ b/custom_components/battery_sim/__init__.py @@ -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"""