mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Remove unnecessary constants from universal (#46537)
This commit is contained in:
parent
f0e9ef421c
commit
68e78a2ddc
@ -94,13 +94,10 @@ from homeassistant.helpers.reload import async_setup_reload_service
|
|||||||
from homeassistant.helpers.service import async_call_from_config
|
from homeassistant.helpers.service import async_call_from_config
|
||||||
|
|
||||||
ATTR_ACTIVE_CHILD = "active_child"
|
ATTR_ACTIVE_CHILD = "active_child"
|
||||||
ATTR_DATA = "data"
|
|
||||||
|
|
||||||
CONF_ATTRS = "attributes"
|
CONF_ATTRS = "attributes"
|
||||||
CONF_CHILDREN = "children"
|
CONF_CHILDREN = "children"
|
||||||
CONF_COMMANDS = "commands"
|
CONF_COMMANDS = "commands"
|
||||||
CONF_SERVICE = "service"
|
|
||||||
CONF_SERVICE_DATA = "service_data"
|
|
||||||
|
|
||||||
OFF_STATES = [STATE_IDLE, STATE_OFF, STATE_UNAVAILABLE]
|
OFF_STATES = [STATE_IDLE, STATE_OFF, STATE_UNAVAILABLE]
|
||||||
|
|
||||||
@ -124,7 +121,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
|||||||
|
|
||||||
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
|
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
|
||||||
"""Set up the universal media players."""
|
"""Set up the universal media players."""
|
||||||
|
|
||||||
await async_setup_reload_service(hass, "universal", ["media_player"])
|
await async_setup_reload_service(hass, "universal", ["media_player"])
|
||||||
|
|
||||||
player = UniversalMediaPlayer(
|
player = UniversalMediaPlayer(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user