mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Update return home and dock icon (#17672)
Update return home and docker icon
This commit is contained in:
parent
d33430e53f
commit
7e7205627a
@ -1,4 +1,4 @@
|
|||||||
import { mdiHomeMapMarker, mdiPause, mdiPlay } from "@mdi/js";
|
import { mdiHomeImportOutline, mdiPause, mdiPlay } from "@mdi/js";
|
||||||
import { CSSResultGroup, LitElement, css, html, nothing } from "lit";
|
import { CSSResultGroup, LitElement, css, html, nothing } from "lit";
|
||||||
import { customElement, property } from "lit/decorators";
|
import { customElement, property } from "lit/decorators";
|
||||||
import memoizeOne from "memoize-one";
|
import memoizeOne from "memoize-one";
|
||||||
@ -44,7 +44,7 @@ const LAWN_MOWER_COMMANDS: LawnMowerCommand[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
translationKey: "dock",
|
translationKey: "dock",
|
||||||
icon: mdiHomeMapMarker,
|
icon: mdiHomeImportOutline,
|
||||||
serviceName: "dock",
|
serviceName: "dock",
|
||||||
isVisible: (stateObj) =>
|
isVisible: (stateObj) =>
|
||||||
supportsFeature(stateObj, LawnMowerEntityFeature.DOCK),
|
supportsFeature(stateObj, LawnMowerEntityFeature.DOCK),
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import "@material/mwc-list/mwc-list-item";
|
import "@material/mwc-list/mwc-list-item";
|
||||||
import {
|
import {
|
||||||
mdiFan,
|
mdiFan,
|
||||||
mdiHomeMapMarker,
|
mdiHomeImportOutline,
|
||||||
mdiMapMarker,
|
mdiMapMarker,
|
||||||
mdiPause,
|
mdiPause,
|
||||||
mdiPlay,
|
mdiPlay,
|
||||||
@ -91,7 +91,7 @@ const VACUUM_COMMANDS: VacuumCommand[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
translationKey: "return_home",
|
translationKey: "return_home",
|
||||||
icon: mdiHomeMapMarker,
|
icon: mdiHomeImportOutline,
|
||||||
serviceName: "return_to_base",
|
serviceName: "return_to_base",
|
||||||
isVisible: (stateObj) =>
|
isVisible: (stateObj) =>
|
||||||
supportsFeature(stateObj, VacuumEntityFeature.RETURN_HOME),
|
supportsFeature(stateObj, VacuumEntityFeature.RETURN_HOME),
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { mdiHomeMapMarker, mdiPause, mdiPlay } from "@mdi/js";
|
import { mdiHomeImportOutline, mdiPause, mdiPlay } from "@mdi/js";
|
||||||
import { HassEntity } from "home-assistant-js-websocket";
|
import { HassEntity } from "home-assistant-js-websocket";
|
||||||
import { LitElement, css, html, nothing } from "lit";
|
import { LitElement, css, html, nothing } from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
@ -69,7 +69,7 @@ export const LAWN_MOWER_COMMANDS_BUTTONS: Record<
|
|||||||
},
|
},
|
||||||
dock: (stateObj) => ({
|
dock: (stateObj) => ({
|
||||||
translationKey: "dock",
|
translationKey: "dock",
|
||||||
icon: mdiHomeMapMarker,
|
icon: mdiHomeImportOutline,
|
||||||
serviceName: "dock",
|
serviceName: "dock",
|
||||||
disabled: !canDock(stateObj),
|
disabled: !canDock(stateObj),
|
||||||
}),
|
}),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
mdiHomeMapMarker,
|
mdiHomeImportOutline,
|
||||||
mdiMapMarker,
|
mdiMapMarker,
|
||||||
mdiPause,
|
mdiPause,
|
||||||
mdiPlay,
|
mdiPlay,
|
||||||
@ -8,7 +8,7 @@ import {
|
|||||||
mdiTargetVariant,
|
mdiTargetVariant,
|
||||||
} from "@mdi/js";
|
} from "@mdi/js";
|
||||||
import { HassEntity } from "home-assistant-js-websocket";
|
import { HassEntity } from "home-assistant-js-websocket";
|
||||||
import { css, html, LitElement, nothing } from "lit";
|
import { LitElement, css, html, nothing } from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import { computeDomain } from "../../../common/entity/compute_domain";
|
import { computeDomain } from "../../../common/entity/compute_domain";
|
||||||
import { supportsFeature } from "../../../common/entity/supports-feature";
|
import { supportsFeature } from "../../../common/entity/supports-feature";
|
||||||
@ -16,19 +16,19 @@ import "../../../components/ha-control-button";
|
|||||||
import "../../../components/ha-control-button-group";
|
import "../../../components/ha-control-button-group";
|
||||||
import { UNAVAILABLE } from "../../../data/entity";
|
import { UNAVAILABLE } from "../../../data/entity";
|
||||||
import {
|
import {
|
||||||
|
VacuumEntity,
|
||||||
|
VacuumEntityFeature,
|
||||||
canReturnHome,
|
canReturnHome,
|
||||||
canStart,
|
canStart,
|
||||||
canStop,
|
canStop,
|
||||||
isCleaning,
|
isCleaning,
|
||||||
VacuumEntity,
|
|
||||||
VacuumEntityFeature,
|
|
||||||
} from "../../../data/vacuum";
|
} from "../../../data/vacuum";
|
||||||
import { HomeAssistant } from "../../../types";
|
import { HomeAssistant } from "../../../types";
|
||||||
import { LovelaceTileFeature, LovelaceTileFeatureEditor } from "../types";
|
import { LovelaceTileFeature, LovelaceTileFeatureEditor } from "../types";
|
||||||
import {
|
import {
|
||||||
|
VACUUM_COMMANDS,
|
||||||
VacuumCommand,
|
VacuumCommand,
|
||||||
VacuumCommandsTileFeatureConfig,
|
VacuumCommandsTileFeatureConfig,
|
||||||
VACUUM_COMMANDS,
|
|
||||||
} from "./types";
|
} from "./types";
|
||||||
|
|
||||||
interface VacuumButton {
|
interface VacuumButton {
|
||||||
@ -110,7 +110,7 @@ export const VACUUM_COMMANDS_BUTTONS: Record<
|
|||||||
}),
|
}),
|
||||||
return_home: (stateObj) => ({
|
return_home: (stateObj) => ({
|
||||||
translationKey: "return_home",
|
translationKey: "return_home",
|
||||||
icon: mdiHomeMapMarker,
|
icon: mdiHomeImportOutline,
|
||||||
serviceName: "return_to_base",
|
serviceName: "return_to_base",
|
||||||
disabled: !canReturnHome(stateObj),
|
disabled: !canReturnHome(stateObj),
|
||||||
}),
|
}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user