Extract media-player constants to src/data (#2149)

This commit is contained in:
Ian Richardson 2018-11-30 07:17:52 -06:00 committed by Paulus Schoutsen
parent 023d8ad893
commit 8e9ff46bab
2 changed files with 10 additions and 5 deletions

4
src/data/media-player.ts Normal file
View File

@ -0,0 +1,4 @@
export const SUPPORT_PAUSE = 1;
export const SUPPORT_NEXT_TRACK = 32;
export const SUPPORTS_PLAY = 16384;
export const OFF_STATES = ["off", "idle"];

View File

@ -8,11 +8,12 @@ import { hassLocalizeLitMixin } from "../../../mixins/lit-localize-mixin";
import { EntityRow, EntityConfig } from "./types";
import { HomeAssistant } from "../../../types";
import { HassEntity } from "home-assistant-js-websocket";
const SUPPORT_PAUSE = 1;
const SUPPORT_NEXT_TRACK = 32;
const SUPPORTS_PLAY = 16384;
const OFF_STATES = ["off", "idle"];
import {
SUPPORTS_PLAY,
SUPPORT_NEXT_TRACK,
OFF_STATES,
SUPPORT_PAUSE,
} from "../../../data/media-player";
class HuiMediaPlayerEntityRow extends hassLocalizeLitMixin(LitElement)
implements EntityRow {