'Provide the timeout argument to select.'

@patch('socket.socket')
@patch('select.select', return_value=(True, False, False))
def test_update_calls_select_with_timeout(self, mock_select, mock_socket):

    tcp.TcpSensor(self.hass, TEST_CONFIG['sensor'])
    mock_socket = mock_socket().__enter__()
    mock_select.assert_called_with([mock_socket], [], [], TEST_CONFIG['sensor'][tcp.CONF_TIMEOUT])
