Remove deprecated yaml config from broadlink (#62341)
This commit is contained in:
parent
3c913d4e88
commit
7919960570
3 changed files with 5 additions and 68 deletions
|
@ -24,7 +24,6 @@ from homeassistant.components.remote import (
|
|||
ATTR_NUM_REPEATS,
|
||||
DEFAULT_DELAY_SECS,
|
||||
DOMAIN as RM_DOMAIN,
|
||||
PLATFORM_SCHEMA,
|
||||
SERVICE_DELETE_COMMAND,
|
||||
SERVICE_LEARN_COMMAND,
|
||||
SERVICE_SEND_COMMAND,
|
||||
|
@ -32,7 +31,7 @@ from homeassistant.components.remote import (
|
|||
SUPPORT_LEARN_COMMAND,
|
||||
RemoteEntity,
|
||||
)
|
||||
from homeassistant.const import CONF_HOST, STATE_OFF
|
||||
from homeassistant.const import STATE_OFF
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers import config_validation as cv
|
||||
from homeassistant.helpers.restore_state import RestoreEntity
|
||||
|
@ -41,7 +40,7 @@ from homeassistant.util import dt
|
|||
|
||||
from .const import DOMAIN
|
||||
from .entity import BroadlinkEntity
|
||||
from .helpers import data_packet, import_device
|
||||
from .helpers import data_packet
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -85,22 +84,6 @@ SERVICE_DELETE_SCHEMA = COMMAND_SCHEMA.extend(
|
|||
{vol.Required(ATTR_DEVICE): vol.All(cv.string, vol.Length(min=1))}
|
||||
)
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
{vol.Required(CONF_HOST): cv.string}, extra=vol.ALLOW_EXTRA
|
||||
)
|
||||
|
||||
|
||||
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
|
||||
"""Import the device and discontinue platform.
|
||||
|
||||
This is for backward compatibility.
|
||||
Do not use this method.
|
||||
"""
|
||||
import_device(hass, config[CONF_HOST])
|
||||
_LOGGER.warning(
|
||||
"The remote platform is deprecated, please remove it from your configuration"
|
||||
)
|
||||
|
||||
|
||||
async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
"""Set up a Broadlink remote."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue