1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Add version for service devices (#11436)

This commit is contained in:
Joakim Sørensen
2022-01-26 10:29:34 +01:00
committed by GitHub
parent c37f660718
commit 953e3e060b
2 changed files with 7 additions and 1 deletions

View File

@@ -59,7 +59,12 @@ export class HaDeviceCard extends LitElement {
? html`
<div class="extra-info">
${this.hass.localize(
"ui.panel.config.integrations.config_entry.firmware",
`ui.panel.config.integrations.config_entry.${
this.device.entry_type === "service" &&
!this.device.hw_version
? "version"
: "firmware"
}`,
"version",
this.device.sw_version
)}

View File

@@ -2470,6 +2470,7 @@
"via": "Connected via",
"firmware": "Firmware: {version}",
"hardware": "Hardware: {version}",
"version": "Version: {version}",
"unnamed_entry": "Unnamed entry",
"unknown_via_device": "Unknown device",
"area": "In {area}",