Surpress silly warnings

This commit is contained in:
Paulus Schoutsen 2016-03-28 23:46:19 -07:00
parent 5baa98b79f
commit a35173a5ff
2 changed files with 3 additions and 2 deletions

View File

@ -290,8 +290,7 @@ def enable_logging(hass, verbose=False, daemon=False, log_rotate_days=None):
} }
)) ))
except ImportError: except ImportError:
_LOGGER.warning( pass
"Colorlog package not found, console coloring disabled")
# Log errors to a file if we have write access to file or config dir # Log errors to a file if we have write access to file or config dir
err_log_path = hass.config.path(ERROR_LOG_FILENAME) err_log_path = hass.config.path(ERROR_LOG_FILENAME)

View File

@ -6,6 +6,7 @@ https://home-assistant.io/components/conversation/
""" """
import logging import logging
import re import re
import warnings
from homeassistant import core from homeassistant import core
from homeassistant.const import ( from homeassistant.const import (
@ -24,6 +25,7 @@ REQUIREMENTS = ['fuzzywuzzy==0.8.0']
def setup(hass, config): def setup(hass, config):
"""Register the process service.""" """Register the process service."""
warnings.filterwarnings('ignore', module='fuzzywuzzy')
from fuzzywuzzy import process as fuzzyExtract from fuzzywuzzy import process as fuzzyExtract
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)