Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Mamontov committed Jan 26, 2022
1 parent be75f4e commit f46b723
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions custom_components/ledfx/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ async def async_step_auth(self, user_input):

auth = USE_CLIENT_DEFAULT
if (
user_input[CONF_USERNAME]
CONF_USERNAME in user_input
and CONF_PASSWORD in user_input
and user_input[CONF_USERNAME]
and len(user_input[CONF_USERNAME]) > 0
and user_input[CONF_PASSWORD]
and len(user_input[CONF_PASSWORD]) > 0
Expand Down Expand Up @@ -127,7 +129,9 @@ async def async_step_settings(self, user_input = None):
if user_input:
auth = USE_CLIENT_DEFAULT
if (
user_input[CONF_USERNAME]
CONF_USERNAME in user_input
and CONF_PASSWORD in user_input
and user_input[CONF_USERNAME]
and len(user_input[CONF_USERNAME]) > 0
and user_input[CONF_PASSWORD]
and len(user_input[CONF_PASSWORD]) > 0
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ledfx/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "ledfx",
"name": "LedFx",
"version": "1.2.0",
"version": "1.2.1",
"documentation": "https://github.com/dmamontov/hass-ledfx",
"issue_tracker": "https://github.com/dmamontov/hass-ledfx/issues",
"config_flow": true,
Expand Down

0 comments on commit f46b723

Please sign in to comment.