diff --git a/hassio/src/system/hassio-supervisor-info.ts b/hassio/src/system/hassio-supervisor-info.ts index 0452bd5188..b76f791c4d 100644 --- a/hassio/src/system/hassio-supervisor-info.ts +++ b/hassio/src/system/hassio-supervisor-info.ts @@ -12,6 +12,7 @@ import { import { fireEvent } from "../../../src/common/dom/fire_event"; import "../../../src/components/buttons/ha-call-api-button"; import "../../../src/components/ha-card"; +import { HassioHostInfo as HassioHostInfoType } from "../../../src/data/hassio/host"; import { HassioSupervisorInfo as HassioSupervisorInfoType, setSupervisorOption, @@ -33,6 +34,8 @@ class HassioSupervisorInfo extends LitElement { @property() public supervisorInfo!: HassioSupervisorInfoType; + @property() public hostInfo!: HassioHostInfoType; + @internalProperty() private _errors?: string; public render(): TemplateResult | void { @@ -61,27 +64,41 @@ class HassioSupervisorInfo extends LitElement {
- - - Share Diagnostics - -
- Share crash reports and diagnostic information. - -
- -
+ ${this.supervisorInfo?.supported + ? html` + + Share Diagnostics + +
+ Share crash reports and diagnostic information. + +
+ +
` + : html`
+ You are running an unsupported installation. + Learn More +
`}
${this._errors - ? html`
Error: ${this._errors}
` + ? html`
Error: ${this._errors}
` : ""}
@@ -143,10 +160,6 @@ class HassioSupervisorInfo extends LitElement { .info td:nth-child(2) { text-align: right; } - .errors { - color: var(--error-color); - margin-top: 16px; - } ha-settings-row { padding: 0; } diff --git a/hassio/src/system/hassio-system.ts b/hassio/src/system/hassio-system.ts index 00a304ed03..3a52347a08 100644 --- a/hassio/src/system/hassio-system.ts +++ b/hassio/src/system/hassio-system.ts @@ -56,6 +56,7 @@ class HassioSystem extends LitElement {