mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Python wink update (#15048)
* Updated python-wink to 1.9.0 * Added support for groups of Wink shades.
This commit is contained in:
parent
75580dfade
commit
6bc03ee763
@ -21,6 +21,10 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
_id = shade.object_id() + shade.name()
|
_id = shade.object_id() + shade.name()
|
||||||
if _id not in hass.data[DOMAIN]['unique_ids']:
|
if _id not in hass.data[DOMAIN]['unique_ids']:
|
||||||
add_devices([WinkCoverDevice(shade, hass)])
|
add_devices([WinkCoverDevice(shade, hass)])
|
||||||
|
for shade in pywink.get_shade_groups():
|
||||||
|
_id = shade.object_id() + shade.name()
|
||||||
|
if _id not in hass.data[DOMAIN]['unique_ids']:
|
||||||
|
add_devices([WinkCoverDevice(shade, hass)])
|
||||||
for door in pywink.get_garage_doors():
|
for door in pywink.get_garage_doors():
|
||||||
_id = door.object_id() + door.name()
|
_id = door.object_id() + door.name()
|
||||||
if _id not in hass.data[DOMAIN]['unique_ids']:
|
if _id not in hass.data[DOMAIN]['unique_ids']:
|
||||||
|
@ -26,7 +26,7 @@ from homeassistant.helpers.entity_component import EntityComponent
|
|||||||
from homeassistant.helpers.event import track_time_interval
|
from homeassistant.helpers.event import track_time_interval
|
||||||
from homeassistant.util.json import load_json, save_json
|
from homeassistant.util.json import load_json, save_json
|
||||||
|
|
||||||
REQUIREMENTS = ['python-wink==1.8.0', 'pubnubsub-handler==1.0.2']
|
REQUIREMENTS = ['python-wink==1.9.0', 'pubnubsub-handler==1.0.2']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -1098,7 +1098,7 @@ python-velbus==2.0.11
|
|||||||
python-vlc==1.1.2
|
python-vlc==1.1.2
|
||||||
|
|
||||||
# homeassistant.components.wink
|
# homeassistant.components.wink
|
||||||
python-wink==1.8.0
|
python-wink==1.9.0
|
||||||
|
|
||||||
# homeassistant.components.sensor.swiss_public_transport
|
# homeassistant.components.sensor.swiss_public_transport
|
||||||
python_opendata_transport==0.1.3
|
python_opendata_transport==0.1.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user