mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 12:16:39 +00:00
Extract media-player constants to src/data (#2149)
This commit is contained in:
parent
023d8ad893
commit
8e9ff46bab
4
src/data/media-player.ts
Normal file
4
src/data/media-player.ts
Normal 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"];
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user