Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
benderl committed Feb 13, 2024
1 parent 30dea6b commit 2908e41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/helpermodules/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def __init__(self, name: str, on_connect: Callable, on_message: Callable) -> Non
def start_infinite_loop(self) -> None:
self.client.loop_forever()

def start_finite_loop(self, timeout: int = 1) -> None:
def start_finite_loop(self) -> None:
self.client.loop_start()
time.sleep(timeout)
time.sleep(1)
self.client.loop_stop()

def disconnect(self) -> None:
Expand Down
2 changes: 1 addition & 1 deletion packages/helpermodules/measurement_logging/process_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def process_entry(entry: dict, next_entry: dict, calculation: CalculationType):
try:
for module in next_entry[type].keys():
if module not in entry[type].keys():
log.warning(f"adding module {module} from next entry")
log.debug(f"adding module {module} from next entry")
entry[type].update({module: {"energy_imported": 0.0, "energy_exported": 0.0}})
except KeyError:
# catch missing "type"
Expand Down

0 comments on commit 2908e41

Please sign in to comment.