WIP: Homematic improvments with new hass interfaces (#9058)

* Remove hass to init hack and use official interfaces

* fix lint

* Fix lint

* change style
This commit is contained in:
Pascal Vizeli 2017-08-31 21:16:44 +02:00 committed by GitHub
parent 274e4449ea
commit 836b528bd3
7 changed files with 35 additions and 40 deletions

View file

@ -21,8 +21,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
devices = []
for conf in discovery_info[ATTR_DISCOVER_DEVICES]:
new_device = HMSwitch(hass, conf)
new_device.link_homematic()
new_device = HMSwitch(conf)
devices.append(new_device)
add_devices(devices)