-
-
Notifications
You must be signed in to change notification settings - Fork 37.4k
Gogogate2 0.1.1 #14294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Gogogate2 0.1.1 #14294
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
122835f
Gogogate2 - bump version
dlbroadfoot 2db3f93
Update requirements_all
dlbroadfoot bef86ca
Expose sensor temperature
dlbroadfoot 232ebfa
update version
dlbroadfoot ea8b15e
import attribute
dlbroadfoot 75fcf07
Set temperature
dlbroadfoot 7635b6f
Remove temperature attribute
dlbroadfoot 3511b17
Update ordering
fabaff de324ee
Fix copy-&-paste issue
fabaff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/ | ||
|
|
@@ -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__) | ||
|
|
||
|
|
@@ -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, | ||
| }) | ||
|
|
||
|
|
@@ -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) | ||
| username = config.get(CONF_USERNAME) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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