From 5db4d78dc75f93c48647cb13a7aef3811261e1e7 Mon Sep 17 00:00:00 2001 From: tkdrob Date: Sat, 13 Feb 2021 18:21:42 -0500 Subject: [PATCH] Use core constants for rpi_rf (#46500) --- homeassistant/components/rpi_rf/switch.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/rpi_rf/switch.py b/homeassistant/components/rpi_rf/switch.py index 78c2153a7b3..4ac7283b194 100644 --- a/homeassistant/components/rpi_rf/switch.py +++ b/homeassistant/components/rpi_rf/switch.py @@ -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"