Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LKuemmel committed May 24, 2024
1 parent 9ae4b4d commit 1b84791
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/helpermodules/measurement_logging/update_yields.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from control import data
from control.bat_all import BatAll
from control.counter_all import CounterAll
from control.chargepoint.chargepoint_all import AllChargepoints
from helpermodules import timecheck
from helpermodules.measurement_logging.process_log import get_totals
from helpermodules.pub import Pub
Expand Down Expand Up @@ -42,7 +42,7 @@ def update_imported_exported(daily_imported: float, daily_exported: float) -> No
if isinstance(module_data, (Ev, Chargepoint, Pv, Bat, Counter)):
Pub().pub(f"openWB/set/{topic}/{module_data.num}/get/daily_imported", daily_imported)
Pub().pub(f"openWB/set/{topic}/{module_data.num}/get/daily_exported", daily_exported)
elif not isinstance(module_data, (BatAll, CounterAll)):
elif not isinstance(module_data, (BatAll, AllChargepoints)):
# wird im changed_values_handler an den Broker gesendet
Pub().pub(f"openWB/set/{topic}/get/daily_imported", daily_imported)
Pub().pub(f"openWB/set/{topic}/get/daily_exported", daily_exported)
Expand Down

0 comments on commit 1b84791

Please sign in to comment.