Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change message to info alert #9930

Merged
merged 1 commit into from
Sep 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/ha-alert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
mdiAlertOutline,
mdiCheckboxMarkedCircleOutline,
mdiClose,
mdiInformationOutline,
} from "@mdi/js";
import { css, html, LitElement } from "lit";
import { customElement, property } from "lit/decorators";
Expand All @@ -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,
Expand Down
14 changes: 7 additions & 7 deletions src/panels/config/energy/ha-config-energy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -156,7 +155,8 @@ class HaConfigEnergy extends LitElement {
return [
haStyle,
css`
ha-card {
ha-alert {
display: block;
margin: 8px;
}
.container {
Expand Down