Merge pull request #62 from hjelev/dev

update readme.md and change state class for uptime sonsor to total_increasing
This commit is contained in:
Masoko
2024-02-01 20:13:29 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -141,6 +141,7 @@ sys_clock_speed = True
swap = True
memory = True
uptime = True
uptime_seconds = False
wifi_signal = False
wifi_signal_dbm = False
rpi5_fan_speed = False

View File

@@ -272,7 +272,7 @@ def config_json(what_config):
data["icon"] = "mdi:calendar"
data["name"] = "Uptime"
data["unit_of_measurement"] = "days"
data["state_class"] = "measurement"
data["state_class"] = "total_increasing"
elif what_config == "uptime_seconds":
data["icon"] = "mdi:timer-outline"
data["name"] = "Uptime"