From 8689cb129f30b9b5aaeb82c0271749a2c9fd6f12 Mon Sep 17 00:00:00 2001 From: foxsam21 Date: Wed, 27 Jan 2021 02:09:41 -0500 Subject: [PATCH] Minor uptime docs fixes (#948) --- components/sensor/uptime.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/sensor/uptime.rst b/components/sensor/uptime.rst index 55577cca3..04dc86209 100644 --- a/components/sensor/uptime.rst +++ b/components/sensor/uptime.rst @@ -41,14 +41,14 @@ with human readable output. sensor: - platform: uptime name: Uptime Sensor - id: uptime + id: uptime_sensor update_interval: 60s on_raw_value: then: - text_sensor.template.publish: id: uptime_human state: !lambda |- - int seconds = round(id(uptime).raw_state); + int seconds = round(id(uptime_sensor).raw_state); int days = seconds / (24 * 3600); seconds = seconds % (24 * 3600); int hours = seconds / 3600;