From ff530dce0de2416f37455c1ffa5a3575145b3eaa Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Sat, 18 Dec 2021 15:00:07 +0100 Subject: [PATCH] Fix fitbit no SSL URL handling (#62270) --- homeassistant/components/fitbit/sensor.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/fitbit/sensor.py b/homeassistant/components/fitbit/sensor.py index 2de121920af..0c638f0c455 100644 --- a/homeassistant/components/fitbit/sensor.py +++ b/homeassistant/components/fitbit/sensor.py @@ -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."