mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +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);
|
||||
return device
|
||||
? computeDeviceName(device, this.hass)
|
||||
: `(${this.hass.localize(
|
||||
"ui.panel.config.integrations.config_entry.device_unavailable"
|
||||
)})`;
|
||||
: `<${this.hass.localize(
|
||||
"ui.panel.config.integrations.config_entry.unknown_via_device"
|
||||
)}>`;
|
||||
}
|
||||
|
||||
static get styles(): CSSResultGroup {
|
||||
|
@ -2370,11 +2370,10 @@
|
||||
"enable_restart_confirm": "Restart Home Assistant to finish enabling this integration",
|
||||
"disable_error": "Enabling or disabling of the integration failed",
|
||||
"manuf": "by {manufacturer}",
|
||||
"hub": "Connected via",
|
||||
"via": "Connected via",
|
||||
"firmware": "Firmware: {version}",
|
||||
"unnamed_entry": "Unnamed entry",
|
||||
"device_unavailable": "Device unavailable",
|
||||
"entity_unavailable": "Entity unavailable",
|
||||
"unknown_via_device": "Unknown device",
|
||||
"area": "In {area}",
|
||||
"no_area": "No Area",
|
||||
"not_loaded": "Not loaded",
|
||||
|
Loading…
x
Reference in New Issue
Block a user