mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 15:08:10 +01:00
Attempt to fix secret blurring (#5326)
This commit is contained in:
parent
c3332e4a39
commit
bec53f97a2
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