mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 08:46:35 +00:00
Add alert to OZW and legacy Z-Wave panels (#11506)
This commit is contained in:
parent
3f1850e9eb
commit
89b6863ae3
@ -21,6 +21,7 @@ import type { PageNavigation } from "../../../../../layouts/hass-tabs-subpage";
|
|||||||
import { haStyle } from "../../../../../resources/styles";
|
import { haStyle } from "../../../../../resources/styles";
|
||||||
import type { HomeAssistant, Route } from "../../../../../types";
|
import type { HomeAssistant, Route } from "../../../../../types";
|
||||||
import "../../../ha-config-section";
|
import "../../../ha-config-section";
|
||||||
|
import "../../../../../components/ha-alert";
|
||||||
|
|
||||||
export const ozwTabs: PageNavigation[] = [];
|
export const ozwTabs: PageNavigation[] = [];
|
||||||
|
|
||||||
@ -64,6 +65,30 @@ class OZWConfigDashboard extends LitElement {
|
|||||||
.tabs=${ozwTabs}
|
.tabs=${ozwTabs}
|
||||||
back-path="/config/integrations"
|
back-path="/config/integrations"
|
||||||
>
|
>
|
||||||
|
<ha-alert
|
||||||
|
alert-type="warning"
|
||||||
|
title="This integration will stop working soon"
|
||||||
|
>
|
||||||
|
The OpenZWave integration is deprecated and will no longer receive any
|
||||||
|
updates. The technical dependencies will render this integration
|
||||||
|
unusable in the near future. We strongly advise you to migrate to the
|
||||||
|
new
|
||||||
|
<a
|
||||||
|
href="https://www.home-assistant.io/integrations/zwave_js"
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
>Z-Wave JS integration</a
|
||||||
|
>.
|
||||||
|
<a
|
||||||
|
slot="action"
|
||||||
|
href="https://alerts.home-assistant.io/#ozw.markdown"
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
>
|
||||||
|
<mwc-button>learn more</mwc-button>
|
||||||
|
</a>
|
||||||
|
</ha-alert>
|
||||||
|
|
||||||
<ha-config-section .narrow=${this.narrow} .isWide=${this.isWide}>
|
<ha-config-section .narrow=${this.narrow} .isWide=${this.isWide}>
|
||||||
<div slot="header">
|
<div slot="header">
|
||||||
${this.hass.localize("ui.panel.config.ozw.select_instance.header")}
|
${this.hass.localize("ui.panel.config.ozw.select_instance.header")}
|
||||||
@ -162,6 +187,13 @@ class OZWConfigDashboard extends LitElement {
|
|||||||
:host([narrow]) ha-config-section {
|
:host([narrow]) ha-config-section {
|
||||||
margin-top: -20px;
|
margin-top: -20px;
|
||||||
}
|
}
|
||||||
|
ha-alert {
|
||||||
|
display: block;
|
||||||
|
margin: 16px;
|
||||||
|
}
|
||||||
|
ha-alert a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
ha-card {
|
ha-card {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@ import { computeStateName } from "../../../../../common/entity/compute_state_nam
|
|||||||
import { sortStatesByName } from "../../../../../common/entity/states_sort_by_name";
|
import { sortStatesByName } from "../../../../../common/entity/states_sort_by_name";
|
||||||
import "../../../../../components/buttons/ha-call-service-button";
|
import "../../../../../components/buttons/ha-call-service-button";
|
||||||
import "../../../../../components/ha-card";
|
import "../../../../../components/ha-card";
|
||||||
|
import "../../../../../components/ha-alert";
|
||||||
import "../../../../../components/ha-icon";
|
import "../../../../../components/ha-icon";
|
||||||
import "../../../../../components/ha-icon-button";
|
import "../../../../../components/ha-icon-button";
|
||||||
import "../../../../../components/ha-icon-button-arrow-prev";
|
import "../../../../../components/ha-icon-button-arrow-prev";
|
||||||
@ -43,6 +44,14 @@ class HaConfigZwave extends LocalizeMixin(EventsMixin(PolymerElement)) {
|
|||||||
border-bottom: 1px solid var(--divider-color);
|
border-bottom: 1px solid var(--divider-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ha-alert {
|
||||||
|
display: block;
|
||||||
|
margin: 16px;
|
||||||
|
}
|
||||||
|
ha-alert a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
margin-top: 24px;
|
margin-top: 24px;
|
||||||
}
|
}
|
||||||
@ -101,6 +110,30 @@ class HaConfigZwave extends LocalizeMixin(EventsMixin(PolymerElement)) {
|
|||||||
</app-toolbar>
|
</app-toolbar>
|
||||||
</app-header>
|
</app-header>
|
||||||
|
|
||||||
|
<ha-alert
|
||||||
|
alert-type="warning"
|
||||||
|
title="This integration will stop working soon"
|
||||||
|
>
|
||||||
|
This Z-Wave integration is deprecated and will no longer receive any
|
||||||
|
updates. The technical dependencies will render this integration
|
||||||
|
unusable in the near future. We strongly advise you to migrate to the
|
||||||
|
new
|
||||||
|
<a
|
||||||
|
href="https://www.home-assistant.io/integrations/zwave_js"
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
>Z-Wave JS integration</a
|
||||||
|
>.
|
||||||
|
<a
|
||||||
|
slot="action"
|
||||||
|
href="https://alerts.home-assistant.io/#zwave.markdown"
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
>
|
||||||
|
<mwc-button>learn more</mwc-button>
|
||||||
|
</a>
|
||||||
|
</ha-alert>
|
||||||
|
|
||||||
<ha-config-section is-wide="[[isWide]]">
|
<ha-config-section is-wide="[[isWide]]">
|
||||||
<ha-card
|
<ha-card
|
||||||
class="content"
|
class="content"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user