diff --git a/src/dialogs/more-info/controls/more-info-weather.ts b/src/dialogs/more-info/controls/more-info-weather.ts index 8d7a4ca5f358..9403fefc4bc0 100644 --- a/src/dialogs/more-info/controls/more-info-weather.ts +++ b/src/dialogs/more-info/controls/more-info-weather.ts @@ -1,3 +1,4 @@ +import "../../../components/ha-svg-icon"; import { HassEntity } from "home-assistant-js-websocket"; import { css, @@ -9,7 +10,28 @@ import { } from "lit-element"; import { html, TemplateResult } from "lit-html"; import { HomeAssistant } from "../../../types"; -import "../../../components/ha-icon"; + +import { + mdiAlertCircleOutline, + mdiEye, + mdiGauge, + mdiThermometer, + mdiWaterPercent, + mdiWeatherCloudy, + mdiWeatherFog, + mdiWeatherHail, + mdiWeatherLightning, + mdiWeatherLightningRainy, + mdiWeatherNight, + mdiWeatherPartlyCloudy, + mdiWeatherPouring, + mdiWeatherRainy, + mdiWeatherSnowy, + mdiWeatherSnowyRainy, + mdiWeatherSunny, + mdiWeatherWindy, + mdiWeatherWindyVariant, +} from "@mdi/js"; const cardinalDirections = [ "N", @@ -32,21 +54,21 @@ const cardinalDirections = [ ]; const weatherIcons = { - "clear-night": "hass:weather-night", - cloudy: "hass:weather-cloudy", - exceptional: "hass:alert-circle-outline", - fog: "hass:weather-fog", - hail: "hass:weather-hail", - lightning: "hass:weather-lightning", - "lightning-rainy": "hass:weather-lightning-rainy", - partlycloudy: "hass:weather-partly-cloudy", - pouring: "hass:weather-pouring", - rainy: "hass:weather-rainy", - snowy: "hass:weather-snowy", - "snowy-rainy": "hass:weather-snowy-rainy", - sunny: "hass:weather-sunny", - windy: "hass:weather-windy", - "windy-variant": "hass:weather-windy-variant", + "clear-night": mdiWeatherNight, + cloudy: mdiWeatherCloudy, + exceptional: mdiAlertCircleOutline, + fog: mdiWeatherFog, + hail: mdiWeatherHail, + lightning: mdiWeatherLightning, + "lightning-rainy": mdiWeatherLightningRainy, + partlycloudy: mdiWeatherPartlyCloudy, + pouring: mdiWeatherPouring, + rainy: mdiWeatherRainy, + snowy: mdiWeatherSnowy, + "snowy-rainy": mdiWeatherSnowyRainy, + sunny: mdiWeatherSunny, + windy: mdiWeatherWindy, + "windy-variant": mdiWeatherWindyVariant, }; @customElement("more-info-weather") @@ -79,7 +101,7 @@ class MoreInfoWeather extends LitElement { return html`