mirror of
https://github.com/home-assistant/frontend.git
synced 2026-02-15 07:25:54 +00:00
"Devices" & "Voice assistants expose": fix sort for "-" values (#28692)
* fix sorting for "-" values * fix sorting for "-" values
This commit is contained in:
@@ -478,7 +478,7 @@ export class HaConfigDeviceDashboard extends SubscribeMixin(LitElement) {
|
||||
area:
|
||||
device.area_id && areas[device.area_id]
|
||||
? areas[device.area_id].name
|
||||
: "—",
|
||||
: undefined,
|
||||
floor: floorName,
|
||||
integration: deviceEntries.length
|
||||
? deviceEntries
|
||||
@@ -562,6 +562,7 @@ export class HaConfigDeviceDashboard extends SubscribeMixin(LitElement) {
|
||||
filterable: true,
|
||||
groupable: true,
|
||||
minWidth: "120px",
|
||||
template: (device) => device.area || "—",
|
||||
},
|
||||
floor: {
|
||||
title: localize("ui.panel.config.devices.data_table.floor"),
|
||||
|
||||
@@ -196,6 +196,7 @@ export class VoiceAssistantsExpose extends LitElement {
|
||||
sortable: true,
|
||||
groupable: true,
|
||||
filterable: true,
|
||||
template: (entry) => entry.area || "—",
|
||||
},
|
||||
assistants: {
|
||||
title: localize(
|
||||
@@ -385,7 +386,7 @@ export class VoiceAssistantsExpose extends LitElement {
|
||||
"ui.panel.config.entities.picker.unnamed_entity"
|
||||
),
|
||||
domain: domainToName(localize, computeDomain(entityState.entity_id)),
|
||||
area: area ? area.name : "—",
|
||||
area: area ? area.name : undefined,
|
||||
assistants: Object.keys(
|
||||
exposedEntities?.[entityState.entity_id]
|
||||
).filter(
|
||||
@@ -433,7 +434,7 @@ export class VoiceAssistantsExpose extends LitElement {
|
||||
entity_id: entityState.entity_id,
|
||||
entity: entityState,
|
||||
name: computeStateName(entityState),
|
||||
area: area ? area.name : "—",
|
||||
area: area ? area.name : undefined,
|
||||
assistants: [
|
||||
...(exposedEntities
|
||||
? Object.keys(
|
||||
|
||||
Reference in New Issue
Block a user