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
@@ -6,8 +6,9 @@ https://home-assistant.io/components/switch.homematic/
"""
import logging
from homeassistant.components.switch import SwitchDevice
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__)
@@ -19,14 +20,16 @@ def setup_platform(hass, config, add_callback_devices, discovery_info=None):
if discovery_info is None:
return
homematic = get_component("homematic")
return homematic.setup_hmdevice_discovery_helper(
hass,
HMSwitch,
discovery_info,
add_callback_devices
)
class HMSwitch(homematic.HMDevice, SwitchDevice):
class HMSwitch(HMDevice, SwitchDevice):
"""Representation of a Homematic switch."""
@property