mirror of
https://github.com/home-assistant/core.git
synced 2025-08-13 17:45:19 +02:00
Use core constants for rpi_rf (#46500)
This commit is contained in:
@@ -6,7 +6,12 @@ from threading import RLock
|
|||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchEntity
|
from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchEntity
|
||||||
from homeassistant.const import CONF_NAME, CONF_SWITCHES, EVENT_HOMEASSISTANT_STOP
|
from homeassistant.const import (
|
||||||
|
CONF_NAME,
|
||||||
|
CONF_PROTOCOL,
|
||||||
|
CONF_SWITCHES,
|
||||||
|
EVENT_HOMEASSISTANT_STOP,
|
||||||
|
)
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
@@ -14,7 +19,6 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
CONF_CODE_OFF = "code_off"
|
CONF_CODE_OFF = "code_off"
|
||||||
CONF_CODE_ON = "code_on"
|
CONF_CODE_ON = "code_on"
|
||||||
CONF_GPIO = "gpio"
|
CONF_GPIO = "gpio"
|
||||||
CONF_PROTOCOL = "protocol"
|
|
||||||
CONF_PULSELENGTH = "pulselength"
|
CONF_PULSELENGTH = "pulselength"
|
||||||
CONF_SIGNAL_REPETITIONS = "signal_repetitions"
|
CONF_SIGNAL_REPETITIONS = "signal_repetitions"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user