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 Paulus Schoutsen
parent 9b854bdcd3
commit 69a5c63b71
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, "")
): str,
vol.Required(
CONF_USERNAME, default=user_input.get(CONF_USERNAME, "admin")
CONF_USERNAME, default=user_input.get(CONF_USERNAME, "")
): str,
vol.Required(
CONF_PASSWORD, default=user_input.get(CONF_PASSWORD, "")

View File

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

View File

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

View File

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

View File

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