Skip to content

Commit

Permalink
Corrected indentation issue from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
smar000 committed Jan 22, 2021
1 parent b80e192 commit 267cf82
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions evogateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
os.chdir(os.path.dirname(sys.argv[0]))

#---------------------------------------------------------------------------------------------------
VERSION = "2.0.2"
VERSION = "2.0.3"
CONFIG_FILE = "evogateway.cfg"

# --- Configs/Default
Expand Down Expand Up @@ -498,9 +498,9 @@ def mqtt_on_message(client, userdata, msg):
last_sent_command = None
display_and_log(SYSTEM_MSG_TAG, "Cancelled all queued outbound commands")
return
else:
display_and_log(SYSTEM_MSG_TAG, "System configuration command '{}' not recognised".format(json_data[SYS_CONFIG_COMMAND]))
return
else:
display_and_log(SYSTEM_MSG_TAG, "System configuration command '{}' not recognised".format(json_data[SYS_CONFIG_COMMAND]))
return
else:
new_command = get_command_from_mqtt_json(json_data)

Expand All @@ -509,6 +509,7 @@ def mqtt_on_message(client, userdata, msg):
log("{: <18} {}".format("MQTT_SUB", e))
return


def get_command_from_mqtt_json(json_data):
''' Extract command from the mqtt json payload '''

Expand Down

0 comments on commit 267cf82

Please sign in to comment.