mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Improve device information when via device is unknown (#10685)
This commit is contained in:
parent
5fd4315789
commit
921763b5f1
@ -82,9 +82,9 @@ export class HaDeviceCard extends LitElement {
|
|||||||
const device = devices.find((dev) => dev.id === deviceId);
|
const device = devices.find((dev) => dev.id === deviceId);
|
||||||
return device
|
return device
|
||||||
? computeDeviceName(device, this.hass)
|
? computeDeviceName(device, this.hass)
|
||||||
: `(${this.hass.localize(
|
: `<${this.hass.localize(
|
||||||
"ui.panel.config.integrations.config_entry.device_unavailable"
|
"ui.panel.config.integrations.config_entry.unknown_via_device"
|
||||||
)})`;
|
)}>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResultGroup {
|
static get styles(): CSSResultGroup {
|
||||||
|
@ -2370,11 +2370,10 @@
|
|||||||
"enable_restart_confirm": "Restart Home Assistant to finish enabling this integration",
|
"enable_restart_confirm": "Restart Home Assistant to finish enabling this integration",
|
||||||
"disable_error": "Enabling or disabling of the integration failed",
|
"disable_error": "Enabling or disabling of the integration failed",
|
||||||
"manuf": "by {manufacturer}",
|
"manuf": "by {manufacturer}",
|
||||||
"hub": "Connected via",
|
"via": "Connected via",
|
||||||
"firmware": "Firmware: {version}",
|
"firmware": "Firmware: {version}",
|
||||||
"unnamed_entry": "Unnamed entry",
|
"unnamed_entry": "Unnamed entry",
|
||||||
"device_unavailable": "Device unavailable",
|
"unknown_via_device": "Unknown device",
|
||||||
"entity_unavailable": "Entity unavailable",
|
|
||||||
"area": "In {area}",
|
"area": "In {area}",
|
||||||
"no_area": "No Area",
|
"no_area": "No Area",
|
||||||
"not_loaded": "Not loaded",
|
"not_loaded": "Not loaded",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user