mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 05:47:20 +00:00
Change message to info alert (#9930)
This commit is contained in:
parent
0cbac8bb44
commit
1692f9c2dd
@ -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,
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user