diff --git a/homeassistant/bootstrap.py b/homeassistant/bootstrap.py index a8cb428847d..c7959abc60c 100644 --- a/homeassistant/bootstrap.py +++ b/homeassistant/bootstrap.py @@ -239,6 +239,7 @@ def async_enable_logging( if not log_no_color: try: from colorlog import ColoredFormatter + import colorlog # basicConfig must be called after importing colorlog in order to # ensure that the handlers it sets up wraps the correct streams.