Homematic update with HomematicIP/HomematicWired support and multible… (#4568)

* Homematic update with HomematicIP/HomematicWired support and multible connections

* fix bug in virtualkey service

* create new service & cleanups

* fix lint

* Pump pyhomematic 0.1.18
This commit is contained in:
Pascal Vizeli authored and GitHub committed 2016-11-29 20:53:02 +01:00
1 parent 2d02baf3d0
commit 17f0fb69bd
9 files changed
+357 -184

No files matched your search

+5 -2
View File
@@ -7,8 +7,9 @@ https://home-assistant.io/components/light.homematic/
import logging
from homeassistant.components.light import (ATTR_BRIGHTNESS,
SUPPORT_BRIGHTNESS, Light)
from homeassistant.components.homematic import HMDevice
from homeassistant.const import STATE_UNKNOWN
import homeassistant.components.homematic as homematic
from homeassistant.loader import get_component
_LOGGER = logging.getLogger(__name__)
@@ -22,14 +23,16 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
if discovery_info is None:
return
homematic = get_component("homematic")
return homematic.setup_hmdevice_discovery_helper(
hass,
HMLight,
discovery_info,
add_devices
)
class HMLight(homematic.HMDevice, Light):
class HMLight(HMDevice, Light):
"""Representation of a Homematic light."""
@property