Change message to info alert (#9930)

This commit is contained in:
Bram Kragten 2021-09-02 00:40:51 +02:00 committed by GitHub
parent 0cbac8bb44
commit 1692f9c2dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View File

@ -5,6 +5,7 @@ import {
mdiAlertOutline,
mdiCheckboxMarkedCircleOutline,
mdiClose,
mdiInformationOutline,
} from "@mdi/js";
import { css, html, LitElement } from "lit";
import { customElement, property } from "lit/decorators";
@ -13,7 +14,7 @@ import { fireEvent } from "../common/dom/fire_event";
import "./ha-svg-icon";
const ALERT_ICONS = {
info: mdiAlertCircleOutline,
info: mdiInformationOutline,
warning: mdiAlertOutline,
error: mdiAlertCircleOutline,
success: mdiCheckboxMarkedCircleOutline,

View File

@ -13,6 +13,7 @@ import "../../../layouts/hass-loading-screen";
import "../../../layouts/hass-tabs-subpage";
import { haStyle } from "../../../resources/styles";
import type { HomeAssistant, Route } from "../../../types";
import "../../../components/ha-alert";
import { configSections } from "../ha-panel-config";
import "./components/ha-energy-device-settings";
import "./components/ha-energy-grid-settings";
@ -77,12 +78,10 @@ class HaConfigEnergy extends LitElement {
.route=${this.route}
.tabs=${configSections.experiences}
>
<ha-card>
<div class="card-content">
After setting up a new device, it can take up to 2 hours for new
data to arrive in your energy dashboard.
</div>
</ha-card>
<ha-alert>
After setting up a new device, it can take up to 2 hours for new data
to arrive in your energy dashboard.
</ha-alert>
<div class="container">
<ha-energy-grid-settings
.hass=${this.hass}
@ -156,7 +155,8 @@ class HaConfigEnergy extends LitElement {
return [
haStyle,
css`
ha-card {
ha-alert {
display: block;
margin: 8px;
}
.container {