mirror of
https://github.com/esphome/esphome.git
synced 2024-12-23 14:04:53 +01:00
Attempt to fix secret blurring (#5326)
This commit is contained in:
parent
c146712b16
commit
3f8bad3ed1
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ def command_config(args, config):
|
|||
# add the console decoration so the front-end can hide the secrets
|
||||
if not args.show_secrets:
|
||||
output = re.sub(
|
||||
r"(password|key|psk|ssid)\:\s(.*)", r"\1: \\033[5m\2\\033[6m", output
|
||||
r"(password|key|psk|ssid)\: (.+)", r"\1: \\033[5m\2\\033[6m", output
|
||||
)
|
||||
safe_print(output)
|
||||
_LOGGER.info("Configuration is valid!")
|
||||
|
|
Loading…
Reference in a new issue