From 9d2ba7c0080a4a2a498fa8117a46ff78153f3af2 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Tue, 4 Oct 2022 23:13:40 +1300 Subject: [PATCH] Use constant in fitbit messages (#79586) Use FITBIT_CONFIG_FILE constant in configurator messages and buttons --- homeassistant/components/fitbit/sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/fitbit/sensor.py b/homeassistant/components/fitbit/sensor.py index 3165843a23d..767d550809e 100644 --- a/homeassistant/components/fitbit/sensor.py +++ b/homeassistant/components/fitbit/sensor.py @@ -90,7 +90,7 @@ def request_app_setup( if os.path.isfile(config_path): config_file = load_json(config_path) if config_file == DEFAULT_CONFIG: - error_msg = "You didn't correctly modify fitbit.conf, please try again." + error_msg = f"You didn't correctly modify {FITBIT_CONFIG_FILE}, please try again." configurator.notify_errors(hass, _CONFIGURING["fitbit"], error_msg) else: @@ -115,7 +115,7 @@ def request_app_setup( ) return - submit = "I have saved my Client ID and Client Secret into fitbit.conf." + submit = f"I have saved my Client ID and Client Secret into {FITBIT_CONFIG_FILE}." _CONFIGURING["fitbit"] = configurator.request_config( hass,