Fix gogogate2 issue where non-admin users could not login (#37353)

This commit is contained in:
Robert Van Gorkom 2020-07-02 10:49:26 -07:00 committed by GitHub
parent a87c29b5d9
commit e60b975b10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -63,7 +63,7 @@ class Gogogate2FlowHandler(ConfigFlow, domain=DOMAIN):
CONF_IP_ADDRESS, default=user_input.get(CONF_IP_ADDRESS, "") CONF_IP_ADDRESS, default=user_input.get(CONF_IP_ADDRESS, "")
): str, ): str,
vol.Required( vol.Required(
CONF_USERNAME, default=user_input.get(CONF_USERNAME, "admin") CONF_USERNAME, default=user_input.get(CONF_USERNAME, "")
): str, ): str,
vol.Required( vol.Required(
CONF_PASSWORD, default=user_input.get(CONF_PASSWORD, "") CONF_PASSWORD, default=user_input.get(CONF_PASSWORD, "")

View file

@ -3,6 +3,6 @@
"name": "Gogogate2", "name": "Gogogate2",
"config_flow": true, "config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/gogogate2", "documentation": "https://www.home-assistant.io/integrations/gogogate2",
"requirements": ["gogogate2-api==1.0.3"], "requirements": ["gogogate2-api==1.0.4"],
"codeowners": ["@vangorra"] "codeowners": ["@vangorra"]
} }

View file

@ -10,7 +10,7 @@
"step": { "step": {
"user": { "user": {
"title": "Setup GogoGate2", "title": "Setup GogoGate2",
"description": "Provide requisite information below. Note: only the 'admin' user is known to work.", "description": "Provide requisite information below.",
"data": { "data": {
"ip_address": "IP Address", "ip_address": "IP Address",
"username": "[%key:common::config_flow::data::username%]", "username": "[%key:common::config_flow::data::username%]",

View file

@ -660,7 +660,7 @@ glances_api==0.2.0
gntp==1.0.3 gntp==1.0.3
# homeassistant.components.gogogate2 # homeassistant.components.gogogate2
gogogate2-api==1.0.3 gogogate2-api==1.0.4
# homeassistant.components.google # homeassistant.components.google
google-api-python-client==1.6.4 google-api-python-client==1.6.4

View file

@ -310,7 +310,7 @@ gios==0.1.1
glances_api==0.2.0 glances_api==0.2.0
# homeassistant.components.gogogate2 # homeassistant.components.gogogate2
gogogate2-api==1.0.3 gogogate2-api==1.0.4
# homeassistant.components.google # homeassistant.components.google
google-api-python-client==1.6.4 google-api-python-client==1.6.4