From e31bc28ec1aebd343b6029821de5b3cd46002e2d Mon Sep 17 00:00:00 2001 From: Christopher Fenner <9592452+CFenner@users.noreply.github.com> Date: Thu, 1 Feb 2024 08:15:49 +0100 Subject: [PATCH] Update rpi-cpu2mqtt.py --- src/rpi-cpu2mqtt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpi-cpu2mqtt.py b/src/rpi-cpu2mqtt.py index afa71b6..839c38c 100644 --- a/src/rpi-cpu2mqtt.py +++ b/src/rpi-cpu2mqtt.py @@ -309,7 +309,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"] = "RPi MQTT Monitor v" + 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 }}" @@ -598,4 +598,4 @@ if __name__ == '__main__': sys.exit(0) time.sleep(1) # Check the exit flag every second else: - gather_and_send_info() \ No newline at end of file + gather_and_send_info()