@@ -306,7 +306,7 @@ def config_json(what_config):
|
|||||||
elif what_config == "update":
|
elif what_config == "update":
|
||||||
version = check_git_version(script_dir).strip()
|
version = check_git_version(script_dir).strip()
|
||||||
data["icon"] = "mdi:update"
|
data["icon"] = "mdi:update"
|
||||||
data["name"] = "RPi MQTT Monitor Update"
|
data["name"] = "RPi MQTT Monitor"
|
||||||
data["title"] = "Version"
|
data["title"] = "Version"
|
||||||
data["state_topic"] = config.mqtt_topic_prefix + "/" + hostname + "/" + "git_update"
|
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 }}"
|
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)
|
sys.exit(0)
|
||||||
time.sleep(1) # Check the exit flag every second
|
time.sleep(1) # Check the exit flag every second
|
||||||
else:
|
else:
|
||||||
gather_and_send_info()
|
gather_and_send_info()
|
||||||
|
|||||||
Reference in New Issue
Block a user