mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Surpress silly warnings
This commit is contained in:
parent
5baa98b79f
commit
a35173a5ff
@ -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)
|
||||||
|
@ -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__)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user