Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions homeassistant/components/deconz/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
}


async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Old way of setting up deCONZ platforms."""


async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up the deCONZ binary sensor."""
gateway = get_gateway_from_config_entry(hass, config_entry)
Expand Down
4 changes: 0 additions & 4 deletions homeassistant/components/deconz/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
SUPPORT_HVAC = [HVAC_MODE_AUTO, HVAC_MODE_HEAT, HVAC_MODE_OFF]


async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Old way of setting up deCONZ platforms."""


async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up the deCONZ climate devices.

Expand Down
25 changes: 17 additions & 8 deletions homeassistant/components/deconz/const.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
"""Constants for the deCONZ component."""
import logging

from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR_DOMAIN
from homeassistant.components.climate import DOMAIN as CLIMATE_DOMAIN
from homeassistant.components.cover import DOMAIN as COVER_DOMAIN
from homeassistant.components.light import DOMAIN as LIGHT_DOMAIN
from homeassistant.components.lock import DOMAIN as LOCK_DOMAIN
from homeassistant.components.scene import DOMAIN as SCENE_DOMAIN
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
from homeassistant.components.switch import DOMAIN as SWITCH_DOMAIN

LOGGER = logging.getLogger(__package__)

DOMAIN = "deconz"
Expand All @@ -19,14 +28,14 @@
CONF_MASTER_GATEWAY = "master"

SUPPORTED_PLATFORMS = [
"binary_sensor",
"climate",
"cover",
"light",
"lock",
"scene",
"sensor",
"switch",
BINARY_SENSOR_DOMAIN,
CLIMATE_DOMAIN,
COVER_DOMAIN,
LIGHT_DOMAIN,
LOCK_DOMAIN,
SCENE_DOMAIN,
SENSOR_DOMAIN,
SWITCH_DOMAIN,
]

NEW_GROUP = "groups"
Expand Down
4 changes: 0 additions & 4 deletions homeassistant/components/deconz/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
from .gateway import get_gateway_from_config_entry


async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Old way of setting up deCONZ platforms."""


async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up covers for deCONZ component.

Expand Down
4 changes: 0 additions & 4 deletions homeassistant/components/deconz/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@
from .gateway import get_gateway_from_config_entry


async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Old way of setting up deCONZ platforms."""


async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up the deCONZ lights and groups from a config entry."""
gateway = get_gateway_from_config_entry(hass, config_entry)
Expand Down
4 changes: 0 additions & 4 deletions homeassistant/components/deconz/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
from .gateway import get_gateway_from_config_entry


async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Old way of setting up deCONZ platforms."""


async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up scenes for deCONZ component."""
gateway = get_gateway_from_config_entry(hass, config_entry)
Expand Down
4 changes: 0 additions & 4 deletions homeassistant/components/deconz/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@
}


async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Old way of setting up deCONZ platforms."""


async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up the deCONZ sensors."""
gateway = get_gateway_from_config_entry(hass, config_entry)
Expand Down
4 changes: 0 additions & 4 deletions homeassistant/components/deconz/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
from .gateway import get_gateway_from_config_entry


async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Old way of setting up deCONZ platforms."""


async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up switches for deCONZ component.

Expand Down