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:
1 parent
274e4449ea
commit
836b528bd3
7 files changed
+35
-40
No files matched your search
@@ -35,8 +35,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
|
||||
devices = []
|
||||
for conf in discovery_info[ATTR_DISCOVER_DEVICES]:
|
||||
new_device = HMBinarySensor(hass, conf)
|
||||
new_device.link_homematic()
|
||||
new_device = HMBinarySensor(conf)
|
||||
devices.append(new_device)
|
||||
|
||||
add_devices(devices)
|
||||
|
||||
Reference in new issue
Block a user