mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Move imports in itach component (#28005)
This commit is contained in:
parent
322399c0af
commit
5fb3f6038b
@ -1,19 +1,20 @@
|
||||
"""Support for iTach IR devices."""
|
||||
import logging
|
||||
|
||||
import pyitachip2ir
|
||||
import voluptuous as vol
|
||||
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.components import remote
|
||||
from homeassistant.const import (
|
||||
DEVICE_DEFAULT_NAME,
|
||||
CONF_NAME,
|
||||
CONF_MAC,
|
||||
CONF_HOST,
|
||||
CONF_PORT,
|
||||
CONF_DEVICES,
|
||||
)
|
||||
from homeassistant.components.remote import PLATFORM_SCHEMA
|
||||
from homeassistant.const import (
|
||||
CONF_DEVICES,
|
||||
CONF_HOST,
|
||||
CONF_MAC,
|
||||
CONF_NAME,
|
||||
CONF_PORT,
|
||||
DEVICE_DEFAULT_NAME,
|
||||
)
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@ -55,8 +56,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up the ITach connection and devices."""
|
||||
import pyitachip2ir
|
||||
|
||||
itachip2ir = pyitachip2ir.ITachIP2IR(
|
||||
config.get(CONF_MAC), config.get(CONF_HOST), int(config.get(CONF_PORT))
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user