Merge pull request #57 from CFenner/patch-5

Rename update entity
This commit is contained in:
Masoko
2024-02-01 19:54:39 +02:00
committed by GitHub

View File

@@ -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 }}"