Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ omit =
homeassistant/components/envirophat/sensor.py
homeassistant/components/envisalink/*
homeassistant/components/ephember/climate.py
homeassistant/components/epson/const.py
homeassistant/components/epson/media_player.py
homeassistant/components/epsonworkforce/sensor.py
homeassistant/components/eq3btsmart/climate.py
Expand Down
10 changes: 10 additions & 0 deletions homeassistant/components/epson/const.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""Constants for the Epson projector component."""
DOMAIN = "epson"
SERVICE_SELECT_CMODE = "select_cmode"

ATTR_CMODE = "cmode"

DATA_EPSON = "epson"
DEFAULT_NAME = "EPSON Projector"

SUPPORT_CMODE = 33001
17 changes: 8 additions & 9 deletions homeassistant/components/epson/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

from homeassistant.components.media_player import MediaPlayerDevice, PLATFORM_SCHEMA
from homeassistant.components.media_player.const import (
DOMAIN,
SUPPORT_NEXT_TRACK,
SUPPORT_PREVIOUS_TRACK,
SUPPORT_SELECT_SOURCE,
Expand All @@ -49,17 +48,17 @@
)
from homeassistant.helpers.aiohttp_client import async_get_clientsession
import homeassistant.helpers.config_validation as cv
from .const import (
ATTR_CMODE,
DATA_EPSON,
DEFAULT_NAME,
DOMAIN,
SERVICE_SELECT_CMODE,
SUPPORT_CMODE,
)

_LOGGER = logging.getLogger(__name__)

ATTR_CMODE = "cmode"

DATA_EPSON = "epson"
DEFAULT_NAME = "EPSON Projector"

SERVICE_SELECT_CMODE = "epson_select_cmode"
SUPPORT_CMODE = 33001

SUPPORT_EPSON = (
SUPPORT_TURN_ON
| SUPPORT_TURN_OFF
Expand Down
9 changes: 9 additions & 0 deletions homeassistant/components/epson/services.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
select_cmode:
description: Select Color mode of Epson projector
fields:
entity_id:
description: Name of projector
example: 'media_player.epson_projector'
cmode:
description: Name of Cmode
example: 'cinema'
10 changes: 0 additions & 10 deletions homeassistant/components/media_player/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,3 @@ songpal_set_sound_setting:
value:
description: Value to set.
example: 'on'

epson_select_cmode:
description: Select Color mode of Epson projector
fields:
entity_id:
description: Name of projector
example: 'media_player.epson_projector'
cmode:
description: Name of Cmode
example: 'cinema'