Skip to content

Commit 12d3c35

Browse files
authored
Fix typo in friendly_name attribute explanation (#2851)
1 parent fdacf2c commit 12d3c35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core/entity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ The entity's name property only identifies the data point represented by the ent
145145
If the entity represents a single main feature of a device the entity should typically have its name property return `None`.
146146
The "main feature" of a device would for example be the `LightEntity` of a smart light bulb.
147147

148-
The `friendly_name` state attribute is generated by combining then entity name with the device name as follows:
148+
The `friendly_name` state attribute is generated by combining the entity name with the device name as follows:
149149
- The entity is not a member of a device: `friendly_name = entity.name`
150150
- The entity is a member of a device and `entity.name` is not `None`: `friendly_name = f"{device.name} {entity.name}"`
151151
- The entity is a member of a device and `entity.name` is `None`: `friendly_name = f"{device.name}"`

0 commit comments

Comments
 (0)