mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 05:16:49 +00:00
Add "label_mode = attribute" for Map card (#38137)
This commit is contained in:
commit
baf2b497ef
@ -130,7 +130,11 @@ name:
|
||||
label_mode:
|
||||
required: false
|
||||
default: name
|
||||
description: When set to `icon`, renders the entity's icon in the marker instead of text. When set to `state`, renders the entity's state as the label for the map marker instead of the entity's name. This option doesn't apply to [zone](/integrations/zone/) entities because they don't use a label but an icon.
|
||||
description: When set to `icon`, renders the entity's icon in the marker instead of text. When set to `state` or `attribute`, renders the entity's state or attribute as the label for the map marker instead of the entity's name. This option doesn't apply to [zone](/integrations/zone/) entities because they don't use a label but an icon.
|
||||
type: string
|
||||
attribute:
|
||||
required: false
|
||||
description: An entity's attribute when `label_mode` set to `attribute`.
|
||||
type: string
|
||||
focus:
|
||||
required: false
|
||||
@ -151,8 +155,12 @@ source:
|
||||
label_mode:
|
||||
required: false
|
||||
default: name
|
||||
description: When set to `icon`, renders the geolocation entity's icon in the marker instead of text. When set to `state`, renders the entity's state as the label for the map marker instead of the entity's name.
|
||||
type: string
|
||||
description: When set to `icon`, renders the entity's icon in the marker instead of text. When set to `state` or `attribute`, renders the entity's state or attribute as the label for the map marker instead of the entity's name. This option doesn't apply to [zone](/integrations/zone/) entities because they don't use a label but an icon.
|
||||
type: string
|
||||
attribute:
|
||||
required: false
|
||||
description: An entity's attribute when `label_mode` set to `attribute`.
|
||||
type: string
|
||||
focus:
|
||||
required: false
|
||||
default: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user