mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Updates default Pilight port number (#13419)
This commit is contained in:
committed by
Fabian Affolter
parent
b159484a79
commit
872b6cf16b
@@ -26,7 +26,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
CONF_SEND_DELAY = 'send_delay'
|
CONF_SEND_DELAY = 'send_delay'
|
||||||
|
|
||||||
DEFAULT_HOST = '127.0.0.1'
|
DEFAULT_HOST = '127.0.0.1'
|
||||||
DEFAULT_PORT = 5000
|
DEFAULT_PORT = 5001
|
||||||
DEFAULT_SEND_DELAY = 0.0
|
DEFAULT_SEND_DELAY = 0.0
|
||||||
DOMAIN = 'pilight'
|
DOMAIN = 'pilight'
|
||||||
|
|
||||||
|
@@ -81,7 +81,7 @@ class TestPilight(unittest.TestCase):
|
|||||||
|
|
||||||
@patch('homeassistant.components.pilight._LOGGER.error')
|
@patch('homeassistant.components.pilight._LOGGER.error')
|
||||||
def test_connection_failed_error(self, mock_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 assert_setup_component(4):
|
||||||
with patch('pilight.pilight.Client',
|
with patch('pilight.pilight.Client',
|
||||||
side_effect=socket.error) as mock_client:
|
side_effect=socket.error) as mock_client:
|
||||||
@@ -93,7 +93,7 @@ class TestPilight(unittest.TestCase):
|
|||||||
|
|
||||||
@patch('homeassistant.components.pilight._LOGGER.error')
|
@patch('homeassistant.components.pilight._LOGGER.error')
|
||||||
def test_connection_timeout_error(self, mock_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 assert_setup_component(4):
|
||||||
with patch('pilight.pilight.Client',
|
with patch('pilight.pilight.Client',
|
||||||
side_effect=socket.timeout) as mock_client:
|
side_effect=socket.timeout) as mock_client:
|
||||||
|
Reference in New Issue
Block a user