deCONZ thermostat support (#20586)

* Add support for thermostats in deCONZ by adding Climate platform
This commit is contained in:
Robert Svensson authored and GitHub committed 2019-02-18 17:43:22 +01:00
1 parent 3f9e6a7064
commit 9ce8f4737d
16 files changed
+347 -35

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ from homeassistant.components.switch import SwitchDevice
from homeassistant.core import callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from .const import DOMAIN as DECONZ_DOMAIN, POWER_PLUGS, SIRENS
from .const import DOMAIN as DECONZ_DOMAIN, NEW_LIGHT, POWER_PLUGS, SIRENS
from .deconz_device import DeconzDevice
DEPENDENCIES = ['deconz']
@@ -34,7 +34,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
async_add_entities(entities, True)
gateway.listeners.append(
async_dispatcher_connect(hass, 'deconz_new_light', async_add_switch))
async_dispatcher_connect(hass, NEW_LIGHT, async_add_switch))
async_add_switch(gateway.api.lights.values())