Surpress silly warnings

pull/1633/head
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:
_LOGGER.warning(
"Colorlog package not found, console coloring disabled")
pass
# Log errors to a file if we have write access to file or config dir
err_log_path = hass.config.path(ERROR_LOG_FILENAME)

View File

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