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:
parent
274e4449ea
commit
836b528bd3
7 changed files with 35 additions and 40 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue