mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Clean up kira integration (#46292)
This commit is contained in:
parent
6015161dab
commit
1b61b5c10b
@ -13,6 +13,7 @@ from homeassistant.const import (
|
|||||||
CONF_HOST,
|
CONF_HOST,
|
||||||
CONF_NAME,
|
CONF_NAME,
|
||||||
CONF_PORT,
|
CONF_PORT,
|
||||||
|
CONF_REPEAT,
|
||||||
CONF_SENSORS,
|
CONF_SENSORS,
|
||||||
CONF_TYPE,
|
CONF_TYPE,
|
||||||
EVENT_HOMEASSISTANT_STOP,
|
EVENT_HOMEASSISTANT_STOP,
|
||||||
@ -28,7 +29,6 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
DEFAULT_HOST = "0.0.0.0"
|
DEFAULT_HOST = "0.0.0.0"
|
||||||
DEFAULT_PORT = 65432
|
DEFAULT_PORT = 65432
|
||||||
|
|
||||||
CONF_REPEAT = "repeat"
|
|
||||||
CONF_REMOTES = "remotes"
|
CONF_REMOTES = "remotes"
|
||||||
CONF_SENSOR = "sensor"
|
CONF_SENSOR = "sensor"
|
||||||
CONF_REMOTE = "remote"
|
CONF_REMOTE = "remote"
|
||||||
|
@ -6,12 +6,12 @@ from homeassistant.components import remote
|
|||||||
from homeassistant.const import CONF_DEVICE, CONF_NAME
|
from homeassistant.const import CONF_DEVICE, CONF_NAME
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
||||||
|
from . import CONF_REMOTE
|
||||||
|
|
||||||
DOMAIN = "kira"
|
DOMAIN = "kira"
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
CONF_REMOTE = "remote"
|
|
||||||
|
|
||||||
|
|
||||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
"""Set up the Kira platform."""
|
"""Set up the Kira platform."""
|
||||||
|
@ -4,14 +4,14 @@ import logging
|
|||||||
from homeassistant.const import CONF_DEVICE, CONF_NAME, STATE_UNKNOWN
|
from homeassistant.const import CONF_DEVICE, CONF_NAME, STATE_UNKNOWN
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
||||||
|
from . import CONF_SENSOR
|
||||||
|
|
||||||
DOMAIN = "kira"
|
DOMAIN = "kira"
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
ICON = "mdi:remote"
|
ICON = "mdi:remote"
|
||||||
|
|
||||||
CONF_SENSOR = "sensor"
|
|
||||||
|
|
||||||
|
|
||||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
"""Set up a Kira sensor."""
|
"""Set up a Kira sensor."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user