move import to top and add service definition for pilight (#29163)
* move import to top and add service definition for pilight * move import above HA imports
This commit is contained in:
parent
d7a66e6e4c
commit
acc10c296e
2 changed files with 8 additions and 1 deletions
|
@ -7,6 +7,8 @@ from datetime import timedelta
|
|||
|
||||
import voluptuous as vol
|
||||
|
||||
from pilight import pilight
|
||||
|
||||
from homeassistant.helpers.event import track_point_in_utc_time
|
||||
from homeassistant.util import dt as dt_util
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
@ -59,7 +61,6 @@ CONFIG_SCHEMA = vol.Schema(
|
|||
|
||||
def setup(hass, config):
|
||||
"""Set up the Pilight component."""
|
||||
from pilight import pilight
|
||||
|
||||
host = config[DOMAIN][CONF_HOST]
|
||||
port = config[DOMAIN][CONF_PORT]
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
send:
|
||||
description: Send RF code to Pilight device
|
||||
fields:
|
||||
protocol:
|
||||
description: 'Protocol that Pilight recognizes. See https://manual.pilight.org/protocols/index.html for supported protocols and additional parameters that each protocol supports'
|
||||
example: 'lirc'
|
Loading…
Add table
Add a link
Reference in a new issue