Gogogate2 0.1.1 (#14294)

* Gogogate2 - bump version

Uses latest version of library which ensures commands to device are idempotent

* Update requirements_all

* Expose sensor temperature

* update version

* import attribute

* Set temperature

* Remove temperature attribute

Removed temperature attribute until it can be re-implemented as a separate sensor.

* Update ordering

* Fix copy-&-paste issue
This commit is contained in:
David Broadfoot 2018-05-09 01:42:18 +10:00 committed by Paulus Schoutsen
parent 4343659742
commit eb551a6d5a
2 changed files with 8 additions and 7 deletions

View File

@ -1,5 +1,5 @@
""" """
Support for Gogogate2 Garage Doors. Support for Gogogate2 garage Doors.
For more details about this platform, please refer to the documentation For more details about this platform, please refer to the documentation
https://home-assistant.io/components/cover.gogogate2/ https://home-assistant.io/components/cover.gogogate2/
@ -15,7 +15,7 @@ from homeassistant.const import (
CONF_IP_ADDRESS, CONF_NAME) CONF_IP_ADDRESS, CONF_NAME)
import homeassistant.helpers.config_validation as cv import homeassistant.helpers.config_validation as cv
REQUIREMENTS = ['pygogogate2==0.0.7'] REQUIREMENTS = ['pygogogate2==0.1.1']
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
@ -25,9 +25,9 @@ NOTIFICATION_ID = 'gogogate2_notification'
NOTIFICATION_TITLE = 'Gogogate2 Cover Setup' NOTIFICATION_TITLE = 'Gogogate2 Cover Setup'
COVER_SCHEMA = vol.Schema({ COVER_SCHEMA = vol.Schema({
vol.Required(CONF_USERNAME): cv.string,
vol.Required(CONF_PASSWORD): cv.string,
vol.Required(CONF_IP_ADDRESS): cv.string, vol.Required(CONF_IP_ADDRESS): cv.string,
vol.Required(CONF_PASSWORD): cv.string,
vol.Required(CONF_USERNAME): cv.string,
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string, vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
}) })
@ -36,10 +36,11 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
"""Set up the Gogogate2 component.""" """Set up the Gogogate2 component."""
from pygogogate2 import Gogogate2API as pygogogate2 from pygogogate2 import Gogogate2API as pygogogate2
username = config.get(CONF_USERNAME)
password = config.get(CONF_PASSWORD)
ip_address = config.get(CONF_IP_ADDRESS) ip_address = config.get(CONF_IP_ADDRESS)
name = config.get(CONF_NAME) name = config.get(CONF_NAME)
password = config.get(CONF_PASSWORD)
username = config.get(CONF_USERNAME)
mygogogate2 = pygogogate2(username, password, ip_address) mygogogate2 = pygogogate2(username, password, ip_address)
try: try:

View File

@ -784,7 +784,7 @@ pyfritzhome==0.3.7
pyfttt==0.3 pyfttt==0.3
# homeassistant.components.cover.gogogate2 # homeassistant.components.cover.gogogate2
pygogogate2==0.0.7 pygogogate2==0.1.1
# homeassistant.components.remote.harmony # homeassistant.components.remote.harmony
pyharmony==1.0.20 pyharmony==1.0.20