Use constant in fitbit messages (#79586)
Use FITBIT_CONFIG_FILE constant in configurator messages and buttonspull/79563/head
parent
4a6d1fc734
commit
9d2ba7c008
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue