mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Add em dash "—" instead of a blank value in devices and entities tables to improve accessibility (#11078)
This commit is contained in:
parent
1010777139
commit
0c07178c0a
@ -197,7 +197,7 @@ export class HaConfigDeviceDashboard extends LitElement {
|
||||
),
|
||||
model: device.model || "<unknown>",
|
||||
manufacturer: device.manufacturer || "<unknown>",
|
||||
area: device.area_id ? areaLookup[device.area_id].name : undefined,
|
||||
area: device.area_id ? areaLookup[device.area_id].name : "—",
|
||||
integration: device.config_entries.length
|
||||
? device.config_entries
|
||||
.filter((entId) => entId in entryLookup)
|
||||
|
@ -171,6 +171,7 @@ export class HaConfigEntities extends SubscribeMixin(LitElement) {
|
||||
type: "icon",
|
||||
template: (_, entry: any) => html`
|
||||
<ha-state-icon
|
||||
.title=${entry.entity.state}
|
||||
slot="item-icon"
|
||||
.state=${entry.entity}
|
||||
></ha-state-icon>
|
||||
@ -284,7 +285,7 @@ export class HaConfigEntities extends SubscribeMixin(LitElement) {
|
||||
</paper-tooltip>
|
||||
</div>
|
||||
`
|
||||
: "",
|
||||
: "—",
|
||||
},
|
||||
})
|
||||
);
|
||||
@ -377,7 +378,7 @@ export class HaConfigEntities extends SubscribeMixin(LitElement) {
|
||||
name: computeEntityRegistryName(this.hass!, entry),
|
||||
unavailable,
|
||||
restored,
|
||||
area: area ? area.name : undefined,
|
||||
area: area ? area.name : "—",
|
||||
status: restored
|
||||
? this.hass.localize(
|
||||
"ui.panel.config.entities.picker.status.restored"
|
||||
|
Loading…
x
Reference in New Issue
Block a user