mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
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
@ -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…
x
Reference in New Issue
Block a user