From d6599f47c220bc8557bdb86fc27599f58dcc72fd Mon Sep 17 00:00:00 2001 From: devliq <21136062+devliq@users.noreply.github.com> Date: Fri, 17 Feb 2023 21:07:19 -0500 Subject: [PATCH] https://esphome.io/changelog/2023.2.0.html Friendly Name ESPHome now supports setting a friendly_name which is sent to Home Assistant. This name will be used for the config entry, the device name, and will be automatically prefixed to all of the entities where needed by Home Assistant. Note If you opt to use this new friendly name, take note that you should remove any friendly name (substitition) that you currently prepend onto entity name in YAML. ```yaml esphome: name: living-room friendly_name: Living Room sensor: - platform: dht pin: GPIO5 name: Temperature ``` What would be the best way of handling this? --- athom-smart-plug-v2.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/athom-smart-plug-v2.yaml b/athom-smart-plug-v2.yaml index 205fc5b..ec32457 100644 --- a/athom-smart-plug-v2.yaml +++ b/athom-smart-plug-v2.yaml @@ -1,6 +1,5 @@ substitutions: device_name: "athom-smart-plug-v2" - friendly_name: "Athom Smart Plug V2" project_name: "athom.smart-plug-v2" project_version: "1.1" relay_restore_mode: RESTORE_DEFAULT_OFF @@ -8,6 +7,7 @@ substitutions: esphome: name: "${device_name}" name_add_mac_suffix: true + friendly_name: "Athom Smart Plug V2" project: name: "${project_name}" version: "${project_version}"