Support for python-wink 1.0.0 (#5534)
This commit is contained in:
parent
794852f76f
commit
47bbfc309c
7 changed files with 177 additions and 74 deletions
|
@ -17,10 +17,12 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||
|
||||
for switch in pywink.get_switches():
|
||||
add_devices([WinkToggleDevice(switch, hass)])
|
||||
for switch in pywink.get_powerstrip_outlets():
|
||||
for switch in pywink.get_powerstrips():
|
||||
add_devices([WinkToggleDevice(switch, hass)])
|
||||
for switch in pywink.get_sirens():
|
||||
add_devices([WinkToggleDevice(switch, hass)])
|
||||
for sprinkler in pywink.get_sprinklers():
|
||||
add_devices([WinkToggleDevice(sprinkler, hass)])
|
||||
|
||||
|
||||
class WinkToggleDevice(WinkDevice, ToggleEntity):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue