Support for Wink Switch and Light groups also fix fan speed selection (#8501)
* Support for Switch and Light groups, fix fan speed * Fixed hound violations
This commit is contained in:
1 parent
f1280d3edb
commit
84ebcd8a59
5 files changed
+24
-7
No files matched your search
@@ -32,6 +32,10 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
_id = sprinkler.object_id() + sprinkler.name()
|
||||
if _id not in hass.data[DOMAIN]['unique_ids']:
|
||||
add_devices([WinkToggleDevice(sprinkler, hass)])
|
||||
for switch in pywink.get_binary_switch_groups():
|
||||
_id = switch.object_id() + switch.name()
|
||||
if _id not in hass.data[DOMAIN]['unique_ids']:
|
||||
add_devices([WinkToggleDevice(switch, hass)])
|
||||
|
||||
|
||||
class WinkToggleDevice(WinkDevice, ToggleEntity):
|
||||
|
||||
Reference in new issue
Block a user