Use constant in fitbit messages (#79586)

Use FITBIT_CONFIG_FILE constant in configurator messages and buttons
pull/79563/head
Nathan Broadbent 2022-10-04 23:13:40 +13:00 committed by GitHub
parent 4a6d1fc734
commit 9d2ba7c008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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,