Skip to content

Commit

Permalink
fix uptime device_class hass logs error (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjelev authored Dec 8, 2024
1 parent d1f23a1 commit e26f005
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/rpi-cpu2mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,6 @@ def config_json(what_config, device="0", hass_api=False):
data["icon"] = "mdi:calendar"
data["name"] = "Uptime"
data["value_template"] = "{{ as_datetime(value) }}"
data["state_class"] = "measurement"
data["device_class"] = "timestamp"
elif what_config == "uptime_seconds":
data["icon"] = "mdi:timer-outline"
Expand Down

0 comments on commit e26f005

Please sign in to comment.