mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-03 11:11:38 +02:00
Allow disable mqtt
This commit is contained in:
parent
0f52c62b3f
commit
532168e1eb
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ if __name__ == '__main__':
|
|||
#
|
||||
# Enables and subscribe inverter to mqtt /command-Topic
|
||||
#
|
||||
if inverter.get('mqtt', {}).get('send_raw_enabled', False):
|
||||
if mqtt_client and inverter.get('mqtt', {}).get('send_raw_enabled', False):
|
||||
topic_item = (
|
||||
str(inverter_ser),
|
||||
inverter.get('mqtt', {}).get('topic', f'hoymiles/{inverter_ser}') + '/command'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue