mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-25 22:11:29 +01:00
Fix time id conflict (#418)
correct time id as it is not authorized with new version
This commit is contained in:
parent
d5f3b8b3d6
commit
ad16db3789
@ -41,7 +41,7 @@ Get the time from Home Assistant to sync the onboard real-time-clock.
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
id: time
|
||||
id: esptime
|
||||
|
||||
Getting Temperature
|
||||
*******************
|
||||
@ -114,7 +114,7 @@ Note your ``address`` and ``model`` might be different, use the scan option to f
|
||||
it.printf(64, 0, id(font1), TextAlign::TOP_CENTER, "Mitt Smarta Hus");
|
||||
|
||||
// Print time in HH:MM format
|
||||
it.strftime(0, 60, id(font2), TextAlign::BASELINE_LEFT, "%H:%M", id(time).now());
|
||||
it.strftime(0, 60, id(font2), TextAlign::BASELINE_LEFT, "%H:%M", id(esptime).now());
|
||||
|
||||
// Print inside temperature (from homeassistant sensor)
|
||||
if (id(inside_temperature).has_state()) {
|
||||
|
Loading…
Reference in New Issue
Block a user