Skip to content

Commit afd1e37

Browse files
added note about name variable (home-assistant#11970)
* added note about name variable I though that name is just for frontend and spent some time finding out where my sensor had gone when I had changed its name. Hope it will save others' time. Actually, I don't think this component's approach is great - would be much more intuitive to have name as a key of a dictionary (as with template sensors, for example) and a friendly_name for UI. Unfortunately, there are many of similar components - perhaps they are older than current template sensor's implementation? * links -> relative * ✏️ Tweak Co-authored-by: Klaas Schoute <klaas_schoute@hotmail.com>
1 parent b073beb commit afd1e37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/_integrations/history_stats.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ state:
4747
required: true
4848
type: string
4949
name:
50-
description: Name displayed on the frontend.
50+
description: Name displayed on the frontend. Note that it is used by Home Assistant to generate sensor's `object_id` so it is advisable to choose a unique one and change name for frontend using [customization](/docs/configuration/customizing-devices/#friendly_name) or via [Lovelace](/lovelace/entities/#name).
5151
required: false
5252
default: unnamed statistics
5353
type: string

0 commit comments

Comments
 (0)