Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-manuel committed Jul 2, 2024
1 parent 14ee3e6 commit a837a85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.1.7
* Changed: Update `energy_forward` only if it was received
* Changed: Fixed problems when timeout was set to `0`.

## v0.1.6
* Changed: Allow to populate only L2 and/or L3 even if L1 is missing

Expand Down
4 changes: 2 additions & 2 deletions dbus-mqtt-pv/dbus-mqtt-pv.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def __init__(
self._dbusservice.add_path('/ProductId', 0xFFFF)
self._dbusservice.add_path('/ProductName', productname)
self._dbusservice.add_path('/CustomName', customname)
self._dbusservice.add_path('/FirmwareVersion', '0.1.6 (20240226)')
self._dbusservice.add_path('/FirmwareVersion', '0.1.7 (20240702)')
# self._dbusservice.add_path('/HardwareVersion', '')
self._dbusservice.add_path('/Connected', 1)

Expand Down Expand Up @@ -370,7 +370,7 @@ def main():
logging.warning("Waiting since %s seconds for receiving first data..." % str(i * 5))

# check if timeout was exceeded
if timeout <= (i * 5):
if timeout != 0 and timeout <= (i * 5):
logging.error(
"Driver stopped. Timeout of %i seconds exceeded, since no new MQTT message was received in this time."
% timeout
Expand Down

0 comments on commit a837a85

Please sign in to comment.