Apply suggestions from code review

This commit is contained in:
Christopher Fenner
2024-01-29 22:50:10 +01:00
committed by GitHub
parent 2f9c48edc2
commit 7b0e61df9e

View File

@@ -278,7 +278,7 @@ def config_json(what_config):
data["name"] = "Uptime"
data["unit_of_measurement"] = "s"
data["device_class"] = "duration"
data["state_class"] = "measurement"
data["state_class"] = "total_increasing"
elif what_config == "wifi_signal":
data["icon"] = "mdi:wifi"
data["name"] = "Wifi Signal"