From 872b6cf16b458a8b69abc32fc45bcbbd6392846e Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 23 Mar 2018 23:22:33 +0100 Subject: [PATCH] Updates default Pilight port number (#13419) --- homeassistant/components/pilight.py | 2 +- tests/components/test_pilight.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/pilight.py b/homeassistant/components/pilight.py index 71e8232e8c2..344c750c0ec 100644 --- a/homeassistant/components/pilight.py +++ b/homeassistant/components/pilight.py @@ -26,7 +26,7 @@ _LOGGER = logging.getLogger(__name__) CONF_SEND_DELAY = 'send_delay' DEFAULT_HOST = '127.0.0.1' -DEFAULT_PORT = 5000 +DEFAULT_PORT = 5001 DEFAULT_SEND_DELAY = 0.0 DOMAIN = 'pilight' diff --git a/tests/components/test_pilight.py b/tests/components/test_pilight.py index 06ad84e7a34..24052a56839 100644 --- a/tests/components/test_pilight.py +++ b/tests/components/test_pilight.py @@ -81,7 +81,7 @@ class TestPilight(unittest.TestCase): @patch('homeassistant.components.pilight._LOGGER.error') def test_connection_failed_error(self, mock_error): - """Try to connect at 127.0.0.1:5000 with socket error.""" + """Try to connect at 127.0.0.1:5001 with socket error.""" with assert_setup_component(4): with patch('pilight.pilight.Client', side_effect=socket.error) as mock_client: @@ -93,7 +93,7 @@ class TestPilight(unittest.TestCase): @patch('homeassistant.components.pilight._LOGGER.error') def test_connection_timeout_error(self, mock_error): - """Try to connect at 127.0.0.1:5000 with socket timeout.""" + """Try to connect at 127.0.0.1:5001 with socket timeout.""" with assert_setup_component(4): with patch('pilight.pilight.Client', side_effect=socket.timeout) as mock_client: