1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

[uptime] Add format config for text_sensor (#8304)

This commit is contained in:
Clyde Stubbs
2025-04-17 11:18:08 +10:00
committed by GitHub
parent 248dbd32a5
commit 55e099450c
4 changed files with 88 additions and 14 deletions

View File

@@ -17,3 +17,13 @@ sensor:
text_sensor:
- platform: uptime
name: Uptime Text
- platform: uptime
name: Uptime Text With Separator
format:
separator: "-"
expand: true
days: "Days"
hours: "H"
minutes: "M"
seconds: "S"
update_interval: 10s