Skip to content

Commit

Permalink
Fix uptime sensor state class (#24)
Browse files Browse the repository at this point in the history
With this change, no warnings are seen in the Home Assistant log any more.
  • Loading branch information
slovdahl authored Feb 18, 2024
1 parent 7a65b6f commit ab80b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion halinuxcompanion/sensors/uptime.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Uptime = Sensor()
Uptime.config_name = "uptime"
Uptime.device_class = "timestamp"
Uptime.state_class = "measurement"
Uptime.state_class = ""
Uptime.icon = "mdi:clock"
Uptime.name = "Uptime"
Uptime.state = 0
Expand Down

0 comments on commit ab80b59

Please sign in to comment.