From 64472c006bb553c6bb75a024384361adad50d565 Mon Sep 17 00:00:00 2001 From: Anders Melchiorsen Date: Wed, 27 Dec 2017 12:55:32 +0100 Subject: [PATCH] Downgrade slow domain setup warning --- homeassistant/setup.py | 2 +- tests/test_setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/setup.py b/homeassistant/setup.py index 05a8ee1e2f1..94cdfd6c0e9 100644 --- a/homeassistant/setup.py +++ b/homeassistant/setup.py @@ -182,7 +182,7 @@ def _async_setup_component(hass: core.HomeAssistant, start = timer() _LOGGER.info("Setting up %s", domain) warn_task = hass.loop.call_later( - SLOW_SETUP_WARNING, _LOGGER.warning, + SLOW_SETUP_WARNING, _LOGGER.info, "Setup of %s is taking over %s seconds.", domain, SLOW_SETUP_WARNING) try: diff --git a/tests/test_setup.py b/tests/test_setup.py index 9a0f85874ad..522d0f29268 100644 --- a/tests/test_setup.py +++ b/tests/test_setup.py @@ -461,6 +461,6 @@ def test_component_warn_slow_setup(hass): timeout, logger_method = mock_call.mock_calls[0][1][:2] assert timeout == setup.SLOW_SETUP_WARNING - assert logger_method == setup._LOGGER.warning + assert logger_method == setup._LOGGER.info assert mock_call().cancel.called