Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions homeassistant/components/cover/gogogate2.py
Original file line number Diff line number Diff line change
@@ -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
https://home-assistant.io/components/cover.gogogate2/
Expand All @@ -15,7 +15,7 @@
CONF_IP_ADDRESS, CONF_NAME)
import homeassistant.helpers.config_validation as cv

REQUIREMENTS = ['pygogogate2==0.0.7']
REQUIREMENTS = ['pygogogate2==0.1.1']

_LOGGER = logging.getLogger(__name__)

Expand All @@ -25,9 +25,9 @@
NOTIFICATION_TITLE = 'Gogogate2 Cover Setup'

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_PASSWORD): cv.string,
vol.Required(CONF_USERNAME): cv.string,
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
})

Expand All @@ -36,10 +36,11 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
"""Set up the Gogogate2 component."""
from pygogogate2 import Gogogate2API as pygogogate2

username = config.get(CONF_USERNAME)
password = config.get(CONF_PASSWORD)
ip_address = config.get(CONF_IP_ADDRESS)
name = config.get(CONF_NAME)
password = config.get(CONF_PASSWORD)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unexpected spaces around keyword / parameter equals

username = config.get(CONF_USERNAME)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unexpected spaces around keyword / parameter equals


mygogogate2 = pygogogate2(username, password, ip_address)

try:
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ pyfritzhome==0.3.7
pyfttt==0.3

# homeassistant.components.cover.gogogate2
pygogogate2==0.0.7
pygogogate2==0.1.1

# homeassistant.components.remote.harmony
pyharmony==1.0.20
Expand Down