Include name and version in already connected dialog if present (#24492)

* Include name and version in already connected dialog if present

* lint

* Apply suggestions from code review

* move
This commit is contained in:
Joakim Sørensen 2025-03-04 10:39:29 +01:00 committed by GitHub
parent 5a37087231
commit bfe20d3760
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 24 additions and 0 deletions

View File

@ -62,6 +62,26 @@ class DialogCloudAlreadyConnected extends LitElement {
</b> </b>
</div> </div>
<div class="instance-details"> <div class="instance-details">
${details.name
? html`<div class="instance-detail">
<span>
${this.hass.localize(
"ui.panel.config.cloud.dialog_already_connected.instance_name"
)}:
</span>
<span>${details.name})}</span>
</div>`
: nothing}
${details.version
? html`<div class="instance-detail">
<span>
${this.hass.localize(
"ui.panel.config.cloud.dialog_already_connected.instance_version"
)}:
</span>
<span>${details.version})}</span>
</div>`
: nothing}
<div class="instance-detail"> <div class="instance-detail">
<span> <span>
${this.hass.localize( ${this.hass.localize(

View File

@ -4,6 +4,8 @@ export interface CloudAlreadyConnectedParams {
details: { details: {
remote_ip_address: string; remote_ip_address: string;
connected_at: string; connected_at: string;
name?: string;
version?: string;
}; };
logInHereAction: () => void; logInHereAction: () => void;
closeDialog: () => void; closeDialog: () => void;

View File

@ -4728,6 +4728,8 @@
"heading": "Account linked to other Home Assistant", "heading": "Account linked to other Home Assistant",
"description": "We noticed that another instance is currently connected to your Home Assistant Cloud account. Your Home Assistant Cloud account can only be signed into one Home Assistant instance at a time. If you log in here, the other instance will be disconnected along with its Cloud services.", "description": "We noticed that another instance is currently connected to your Home Assistant Cloud account. Your Home Assistant Cloud account can only be signed into one Home Assistant instance at a time. If you log in here, the other instance will be disconnected along with its Cloud services.",
"other_home_assistant": "Other Home Assistant", "other_home_assistant": "Other Home Assistant",
"instance_name": "Instance name",
"instance_version": "Instance version",
"ip_address": "IP Address", "ip_address": "IP Address",
"connected_at": "Connected at", "connected_at": "Connected at",
"obfuscated_ip": { "obfuscated_ip": {