mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-22 13:26:10 +02:00
Fixed syntax errors
This commit is contained in:
parent
39e253bc28
commit
eb2608b77d
1 changed files with 2 additions and 2 deletions
|
@ -97,9 +97,9 @@ def poll_inverter(inverter):
|
||||||
|
|
||||||
if mqtt_client:
|
if mqtt_client:
|
||||||
mqtt_send_status(mqtt_client, inverter_ser, data,
|
mqtt_send_status(mqtt_client, inverter_ser, data,
|
||||||
topic=inverter.get('mqtt', {}).get('topic', None)
|
topic=inverter.get('mqtt', {}).get('topic', None))
|
||||||
|
|
||||||
def mqtt_send_status(broker, interter_ser, data, topic=None):
|
def mqtt_send_status(broker, inverter_ser, data, topic=None):
|
||||||
""" Publish StatusResponse object """
|
""" Publish StatusResponse object """
|
||||||
|
|
||||||
if not topic:
|
if not topic:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue