Media player const.py move (#20822)
* Move more constants to const.py * Import constants directly from const * ATTR_ENTITY_ID is not defined in media_player * MEDIA_PLAYER_PLAY_MEDIA_SCHEMA is still in __init__.py * Correct imports in tts * PLATFORM_SCHEMA, SCHEMA is still defined in __init__.py * Pandora imports several services * Some additional fixes for move of const in media_player * Fix hound lengths
This commit is contained in:
parent
faf7ae29b1
commit
d16d14b648
85 changed files with 383 additions and 263 deletions
|
@ -14,10 +14,12 @@ import voluptuous as vol
|
|||
|
||||
from homeassistant.components.cast import DOMAIN as CAST_DOMAIN
|
||||
from homeassistant.components.media_player import (
|
||||
MEDIA_TYPE_MOVIE, MEDIA_TYPE_MUSIC, MEDIA_TYPE_TVSHOW, PLATFORM_SCHEMA,
|
||||
MediaPlayerDevice, PLATFORM_SCHEMA)
|
||||
from homeassistant.components.media_player.const import (
|
||||
MEDIA_TYPE_MOVIE, MEDIA_TYPE_MUSIC, MEDIA_TYPE_TVSHOW,
|
||||
SUPPORT_NEXT_TRACK, SUPPORT_PAUSE, SUPPORT_PLAY, SUPPORT_PLAY_MEDIA,
|
||||
SUPPORT_PREVIOUS_TRACK, SUPPORT_STOP, SUPPORT_TURN_OFF, SUPPORT_TURN_ON,
|
||||
SUPPORT_VOLUME_MUTE, SUPPORT_VOLUME_SET, MediaPlayerDevice)
|
||||
SUPPORT_VOLUME_MUTE, SUPPORT_VOLUME_SET)
|
||||
from homeassistant.const import (
|
||||
CONF_HOST, EVENT_HOMEASSISTANT_STOP, STATE_IDLE, STATE_OFF, STATE_PAUSED,
|
||||
STATE_PLAYING)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue