summaryrefslogtreecommitdiff
path: root/src/inverter_mqtt_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/inverter_mqtt_util.py')
-rwxr-xr-xsrc/inverter_mqtt_util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inverter_mqtt_util.py b/src/inverter_mqtt_util.py
index edea29a..9db25dc 100755
--- a/src/inverter_mqtt_util.py
+++ b/src/inverter_mqtt_util.py
@@ -8,10 +8,10 @@ if __name__ == '__main__':
parser = ArgumentParser()
parser.add_argument('mode', type=str, choices=('sender', 'receiver'), nargs=1)
- config.load('inverter_mqtt_util', parser=parser)
+ config.load_app('inverter_mqtt_util', parser=parser)
arg = parser.parse_args()
- mqtt = MqttWrapper()
+ mqtt = MqttWrapper(clean_session=arg.mode[0] != 'receiver')
node = MqttNode(node_id='inverter')
module_kwargs = {}
if arg.mode[0] == 'sender':