Update device_name on boot only
This commit is contained in:
@@ -1538,7 +1538,7 @@ text_sensor:
|
||||
name: ${name} Device name
|
||||
internal: false
|
||||
platform: template
|
||||
update_interval: 1d
|
||||
update_interval: never
|
||||
lambda: |-
|
||||
return {"${name}"};
|
||||
filters:
|
||||
@@ -2470,6 +2470,8 @@ script:
|
||||
static const char *const TAG = "script.restore_settings";
|
||||
ESP_LOGD(TAG, "Restoring settings");
|
||||
|
||||
device_name->update();
|
||||
|
||||
#ifdef ARDUINO
|
||||
id(framework) = 1;
|
||||
#elif defined(USE_ESP_IDF)
|
||||
|
||||
Reference in New Issue
Block a user