@@ -306,7 +306,7 @@ def config_json(what_config):
|
||||
elif what_config == "update":
|
||||
version = check_git_version(script_dir).strip()
|
||||
data["icon"] = "mdi:update"
|
||||
data["name"] = "RPi MQTT Monitor Update"
|
||||
data["name"] = "RPi MQTT Monitor"
|
||||
data["title"] = "Version"
|
||||
data["state_topic"] = config.mqtt_topic_prefix + "/" + hostname + "/" + "git_update"
|
||||
data["value_template"] = "{{ {'installed_version': value_json.installed_ver, 'latest_version': value_json.new_ver } | to_json }}"
|
||||
@@ -604,4 +604,4 @@ if __name__ == '__main__':
|
||||
sys.exit(0)
|
||||
time.sleep(1) # Check the exit flag every second
|
||||
else:
|
||||
gather_and_send_info()
|
||||
gather_and_send_info()
|
||||
|
||||
Reference in New Issue
Block a user