mirror of
https://github.com/esphome/esphome.git
synced 2024-11-07 09:31:10 +01:00
Attempt to fix secret blurring (#5326)
This commit is contained in:
parent
c146712b16
commit
3f8bad3ed1
@ -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 New Issue
Block a user