mirror of
https://github.com/esphome/esphome.git
synced 2025-09-07 22:02:22 +01:00
[config] Fix reversion of excessive yaml output after error (#10043)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
@@ -37,6 +37,8 @@ class AnsiStyle(Enum):
|
||||
|
||||
|
||||
def color(col: AnsiFore, msg: str, reset: bool = True) -> str:
|
||||
if col == AnsiFore.KEEP:
|
||||
return msg
|
||||
s = col.value + msg
|
||||
if reset and col:
|
||||
s += AnsiStyle.RESET_ALL.value
|
||||
|
Reference in New Issue
Block a user