Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Remove debugging logging
  • Loading branch information
hif2k1 authored Dec 4, 2023
1 parent 1eb1a8c commit 3784c73
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions custom_components/battery_sim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,7 @@ def update_battery(self, import_amount, export_amount):
self._sensors[
self._last_import_reading_sensor_data[SIMULATED_SENSOR]
] += net_import
_LOGGER.warning(f"Updating simulated export sensor: baterry: {self._name}, last_export_sensor:{self._last_export_reading_sensor_data}")
if self._last_export_reading_sensor_data is not None:
_LOGGER.warning(f"Updating simulated export sensor: baterry: {self._name}, last_export_sensor:{self._last_export_reading_sensor_data}, last_export_sensor[simulated_sensor]:{self._last_export_reading_sensor_data[SIMULATED_SENSOR]}")
self._sensors[
self._last_export_reading_sensor_data[SIMULATED_SENSOR]
] += net_export
Expand Down

0 comments on commit 3784c73

Please sign in to comment.