Surpress silly warnings
parent
5baa98b79f
commit
a35173a5ff
|
@ -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)
|
||||
|
|
|
@ -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__)
|
||||
|
|
Loading…
Reference in New Issue