Fix fitbit no SSL URL handling (#62270)

pull/62284/head
Martin Hjelmare 2021-12-18 15:00:07 +01:00 committed by GitHub
parent 93cba53860
commit ff530dce0d
1 changed files with 5 additions and 4 deletions

View File

@ -112,10 +112,11 @@ def request_app_setup(
Then come back here and hit the below button.
"""
except NoURLAvailableError:
error_msg = """Could not find a SSL enabled URL for your Home Assistant instance.
Fitbit requires that your Home Assistant instance is accessible via HTTPS.
"""
configurator.notify_errors(_CONFIGURING["fitbit"], error_msg)
_LOGGER.error(
"Could not find an SSL enabled URL for your Home Assistant instance. "
"Fitbit requires that your Home Assistant instance is accessible via HTTPS"
)
return
submit = "I have saved my Client ID and Client Secret into fitbit.conf."