diff --git a/homeassistant/components/kira/__init__.py b/homeassistant/components/kira/__init__.py index 8948fbd0b8f..732008e5780 100644 --- a/homeassistant/components/kira/__init__.py +++ b/homeassistant/components/kira/__init__.py @@ -13,6 +13,7 @@ from homeassistant.const import ( CONF_HOST, CONF_NAME, CONF_PORT, + CONF_REPEAT, CONF_SENSORS, CONF_TYPE, EVENT_HOMEASSISTANT_STOP, @@ -28,7 +29,6 @@ _LOGGER = logging.getLogger(__name__) DEFAULT_HOST = "0.0.0.0" DEFAULT_PORT = 65432 -CONF_REPEAT = "repeat" CONF_REMOTES = "remotes" CONF_SENSOR = "sensor" CONF_REMOTE = "remote" diff --git a/homeassistant/components/kira/remote.py b/homeassistant/components/kira/remote.py index c9b51fd7ab7..52659426681 100644 --- a/homeassistant/components/kira/remote.py +++ b/homeassistant/components/kira/remote.py @@ -6,12 +6,12 @@ from homeassistant.components import remote from homeassistant.const import CONF_DEVICE, CONF_NAME from homeassistant.helpers.entity import Entity +from . import CONF_REMOTE + DOMAIN = "kira" _LOGGER = logging.getLogger(__name__) -CONF_REMOTE = "remote" - def setup_platform(hass, config, add_entities, discovery_info=None): """Set up the Kira platform.""" diff --git a/homeassistant/components/kira/sensor.py b/homeassistant/components/kira/sensor.py index 71aeec63232..6656780d0e9 100644 --- a/homeassistant/components/kira/sensor.py +++ b/homeassistant/components/kira/sensor.py @@ -4,14 +4,14 @@ import logging from homeassistant.const import CONF_DEVICE, CONF_NAME, STATE_UNKNOWN from homeassistant.helpers.entity import Entity +from . import CONF_SENSOR + DOMAIN = "kira" _LOGGER = logging.getLogger(__name__) ICON = "mdi:remote" -CONF_SENSOR = "sensor" - def setup_platform(hass, config, add_entities, discovery_info=None): """Set up a Kira sensor."""