mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Display version info for custom integrations (#20652)
* Display version info for custom integrations * no width
This commit is contained in:
parent
8cca233b7c
commit
1bc33a30ec
@ -44,6 +44,7 @@ export interface IntegrationManifest {
|
|||||||
| "local_polling"
|
| "local_polling"
|
||||||
| "local_push";
|
| "local_push";
|
||||||
single_config_entry?: boolean;
|
single_config_entry?: boolean;
|
||||||
|
version?: string;
|
||||||
}
|
}
|
||||||
export interface IntegrationSetup {
|
export interface IntegrationSetup {
|
||||||
domain: string;
|
domain: string;
|
||||||
|
@ -269,6 +269,9 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
|
|||||||
@error=${this._onImageError}
|
@error=${this._onImageError}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
${this._manifest?.version != null
|
||||||
|
? html`<div class="version">${this._manifest.version}</div>`
|
||||||
|
: nothing}
|
||||||
${this._manifest?.is_built_in === false
|
${this._manifest?.is_built_in === false
|
||||||
? html`<ha-alert alert-type="warning"
|
? html`<ha-alert alert-type="warning"
|
||||||
><ha-svg-icon
|
><ha-svg-icon
|
||||||
@ -1404,6 +1407,12 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
.version {
|
||||||
|
padding-top: 8px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
color: var(--secondary-text-color);
|
||||||
|
}
|
||||||
.overview .card-actions {
|
.overview .card-actions {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user