mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Use core constants for rpi_rf (#46500)
This commit is contained in:
parent
84488b9c28
commit
5db4d78dc7
@ -6,7 +6,12 @@ from threading import RLock
|
||||
import voluptuous as vol
|
||||
|
||||
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
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
@ -14,7 +19,6 @@ _LOGGER = logging.getLogger(__name__)
|
||||
CONF_CODE_OFF = "code_off"
|
||||
CONF_CODE_ON = "code_on"
|
||||
CONF_GPIO = "gpio"
|
||||
CONF_PROTOCOL = "protocol"
|
||||
CONF_PULSELENGTH = "pulselength"
|
||||
CONF_SIGNAL_REPETITIONS = "signal_repetitions"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user